Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor localizations with resx files #1081

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

kallievz
Copy link
Contributor

@kallievz kallievz commented Jan 9, 2025

Added Language Selector
Added Some NavMenu translations
Fixed issue on Brands and Producsts where View and Delete option was showing in edit screen duplicated. Added Header conformity to Login,SelfRegister and ForgotPassword

Added Language Selector
Added Some NavMenu translations
Fixed issue on Brands and Producsts where View and Delete option was showing in edit screen duplicated.
Added Header conformity to Login,SelfRegister and ForgotPassword
@kallievz
Copy link
Contributor Author

kallievz commented Jan 9, 2025

#971 #902 will be addressed

@kallievz
Copy link
Contributor Author

Added localization for all .razor pages.
Added Language Model in Shared Project.
Add LocalizationConstants in shared project.
Add DI to all razor pages for injection for resources.
Add Resource Project directory in Blazor Client, and organized the .resx files accordingly.

To Add new translation, Add a new LanguageCode entry to LocalizationConstants, will be auto added to dropdown when app start up, and available in language selection.
Add new .resx files with the post-text of the Code in Language Code eg. en-US, add File Login.en.resx in appropriate directory. Easier, copy existing file and rename with the new code, and change the values for localization.

@fretje @iammukeshm , can the PR please be checked, comments is welcome. Reason for adding in shared, I want to translate the Api services later-on as well using resx. I only added English and Afrikaans to xlates, as this is current languages that will be used for now in project, but can be expanded, as we have 11 official languages.

@kallievz kallievz changed the title Added some Basic Localization functionality. Blazor localizations with resx files Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant