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

add vue internationalization #10690

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

fabienpuissant
Copy link
Contributor

create vue internalization module using i18next 23.14.0 with language detector see https://i18next.github.io/i18next-vue/introduction.html

@fabienpuissant
Copy link
Contributor Author

setupTest to be done in the react module in order to not mock i18next on each test

@fabienpuissant fabienpuissant force-pushed the feature/vue-internationalization branch 4 times, most recently from 501c7fb to ec116df Compare September 1, 2024 10:04
@murdos murdos requested a review from Gnuk September 2, 2024 12:52
@fabienpuissant fabienpuissant force-pushed the feature/vue-internationalization branch 3 times, most recently from 2d214da to 4a0d5ec Compare September 4, 2024 22:05
DamnClin
DamnClin previously approved these changes Sep 22, 2024
Copy link
Collaborator

@DamnClin DamnClin left a comment

Choose a reason for hiding this comment

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

Totally forgot this one... sorry.

LGTM

create vue internalization module using i18next 23.14.0 with language detector
see https://i18next.github.io/i18next-vue/introduction.html
@fabienpuissant
Copy link
Contributor Author

@murdos
rebased and adapted but seems ready to go

Copy link
Contributor

@murdos murdos left a comment

Choose a reason for hiding this comment

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

@Gnuk : do you have some time to review this PR?

.containing(nodeDependency("i18next-browser-languagedetector"))
.and()
.hasFile("src/main/webapp/app/i18n.ts")
.containing(
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no real need to check the content of your templates.
It's more useful when you're modifying an existing file.

Copy link
Contributor Author

@fabienpuissant fabienpuissant Sep 27, 2024

Choose a reason for hiding this comment

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

Ok then I removed also for the i18n files related since they are not templated we just load the file into the app (fr.ts, en.ts, Translations.ts, test file)

@murdos murdos merged commit 41cd23f into jhipster:main Sep 27, 2024
34 checks passed
@murdos
Copy link
Contributor

murdos commented Sep 27, 2024

Thanks @fabienpuissant !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants