-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
add vue internationalization #10690
Conversation
setupTest to be done in the react module in order to not mock i18next on each test |
b236543
to
a628c18
Compare
src/main/resources/generator/client/vue/i18n/src/main/webapp/app/i18n.ts
Outdated
Show resolved
Hide resolved
501c7fb
to
ec116df
Compare
2d214da
to
4a0d5ec
Compare
4a0d5ec
to
c17c89c
Compare
src/main/resources/generator/client/common/i18n/Translations.ts
Outdated
Show resolved
Hide resolved
c17c89c
to
db74bb8
Compare
There was a problem hiding this 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
b466c4a
to
f47356e
Compare
@murdos |
There was a problem hiding this 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( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
f47356e
to
6475496
Compare
Thanks @fabienpuissant ! |
Adding a bounty on this nice feature, and to thanks the work for #10639 too |
Thank's :) Bounty claimed : https://opencollective.com/generator-jhipster/expenses/222013 |
@fabienpuissant : approved |
create vue internalization module using i18next 23.14.0 with language detector see https://i18next.github.io/i18next-vue/introduction.html