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
Collaborator

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

@fabienpuissant
Copy link
Collaborator 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
@fabienpuissant fabienpuissant force-pushed the feature/vue-internationalization branch from 4a0d5ec to c17c89c Compare September 4, 2024 22:14
@fabienpuissant fabienpuissant force-pushed the feature/vue-internationalization branch from c17c89c to db74bb8 Compare September 6, 2024 10:18
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 fabienpuissant force-pushed the feature/vue-internationalization branch 2 times, most recently from b466c4a to f47356e Compare September 26, 2024 22:59
@fabienpuissant
Copy link
Collaborator 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
Collaborator 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)

@fabienpuissant fabienpuissant force-pushed the feature/vue-internationalization branch from f47356e to 6475496 Compare September 27, 2024 06:47
@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 !

@pascalgrimaud pascalgrimaud added $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $300 https://www.jhipster.tech/bug-bounties/ labels Sep 28, 2024
@pascalgrimaud
Copy link
Member

Adding a bounty on this nice feature, and to thanks the work for #10639 too

@fabienpuissant
Copy link
Collaborator Author

Thank's :)

Bounty claimed : https://opencollective.com/generator-jhipster/expenses/222013

@pascalgrimaud
Copy link
Member

@fabienpuissant : approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: feature request 💡 $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ client: vue theme: client $300 https://www.jhipster.tech/bug-bounties/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants