mirror of
https://github.com/Corsinvest/cv4pve-admin.git
synced 2026-04-25 21:05:54 +03:00
[PR #228] feat: add JSON-based localization system with culture support #309
Labels
No labels
bug
bug
enhancement
feedback
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-admin#309
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/228
State: closed
Merged: Yes
Summary
JsonLocalizationService: loads translations from embedded resources and external files; in DEBUG registers missing keys directly tosource.jsonin the repoJsonLocalizerFactoryandServiceCollectionExtensionsfor DI wiringUserSettingsfor per-user preferences (culture)HttpResponseExtensions.AppendCultureCookiehelperSettingsHelper.CreateSettingsAccordion<T>generic factory (moved fromModule.System)ApplicationHelper:TranslationsPath,DefaultCulture,CookieCultureNametranslations/*.json(excludingsource.json) asEmbeddedResourcein csprojtranslations/directory creation on app startupsource.json: 1015 unique keys extracted from all EE.razor/.razor.csfiles, non-ASCII chars escaped as\uXXXXTest plan
L["key"]entries are appended tosource.jsonin the repo source