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

Hide localization text from frontend #6860

Open
worthy7 opened this issue Jan 16, 2024 · 0 comments
Open

Hide localization text from frontend #6860

worthy7 opened this issue Jan 16, 2024 · 0 comments
Milestone

Comments

@worthy7
Copy link
Contributor

worthy7 commented Jan 16, 2024

Since the localization files can get quite heavy, or may contain sensitive data not mean for all customers (like admin email text for example), I think that the LocalizationConfiguration should have a feature similar to the SettingsProvider, where you can decide if the localization text is shown on the frontend.

The motivation behind this feature is to reduce app startup time.

Maybe something like the following:

Configuration.Localization.Sources.Add(
    new DictionaryBasedLocalizationSource(
        "SimpleTaskSystem",
        new XmlFileLocalizationDictionaryProvider(
            HttpContext.Current.Server.MapPath("~/Localization/SimpleTaskSystem")
            )
        ),

                        clientVisibilityProvider: new VisibleSettingClientVisibilityProvider()
    );
@ismcagdas ismcagdas added this to the Backlog milestone Jan 18, 2024
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

No branches or pull requests

2 participants