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

Finalize i18n setup #1

Merged
merged 5 commits into from
Jan 17, 2024
Merged

Finalize i18n setup #1

merged 5 commits into from
Jan 17, 2024

Conversation

tkohr
Copy link
Member

@tkohr tkohr commented Jan 11, 2024

The PR enables the extraction of strings from the templates and allows the datahub to load translated string values from gn-ui and the MEL project at the same time.

Note: The differing translation file names (fr_MEL.json) were mainly chosen to facilitate the imports, as apparently aliases cannot be used for JSON files.

apps/datahub/src/app/common/embedded.translate.loader.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"strictNullChecks": false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you have issue with the previous config ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed some adaptions here to allow imports from json for the MelEmbeddedLoader, which did still not work after setting "resolveJsonModule": true and "esModuleInterop": true. I finally ended up taking the config from gn-ui. Not sure if "strictNullChecks": false is actually needed.

@tkohr tkohr merged commit a7e8e46 into main Jan 17, 2024
1 of 5 checks passed
@tkohr tkohr deleted the i18n branch January 17, 2024 16:37
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.

2 participants