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

Allow loading of localization files with hash in filename #298

Closed
JanCizmar opened this issue Apr 28, 2021 · 2 comments · Fixed by #421 or #429
Closed

Allow loading of localization files with hash in filename #298

JanCizmar opened this issue Apr 28, 2021 · 2 comments · Fixed by #421 or #429
Assignees
Labels
enhancement New feature or request

Comments

@JanCizmar
Copy link
Contributor

Localization files have to be loaded every time the page is loaded since there is no way to cache it by their filename.

Lets enable server to export localization .jsons with single definition .json file with this example content:

{
    "languages": {
        "en": {
            name: "English",
            file: "en.7e2c49a622975ebd9b7e.json"
        }
        de": {
            name: "Deutsch",
            file: "de.6e2449a682975ebd9b6d.json"
        }
    }
}

This could be also source for items in language select menu.

@JanCizmar JanCizmar added the enhancement New feature or request label Apr 28, 2021
@JanCizmar JanCizmar self-assigned this Apr 28, 2021
@thran
Copy link

thran commented Aug 10, 2021

Any progress with this?

@JanCizmar
Copy link
Contributor Author

Yes! Now it's possible to provide exported data using dynamic import or as an object. It's described in this doc page:
https://tolgee.io/docs/web/using_with_angular/angular_preparing_for_production

This was linked to pull requests Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants