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

languages adjusts #24181

Merged
merged 5 commits into from
Nov 13, 2023
Merged

languages adjusts #24181

merged 5 commits into from
Nov 13, 2023

Conversation

mshima
Copy link
Member

@mshima mshima commented Nov 10, 2023

fixes #24125


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@mraible
Copy link
Contributor

mraible commented Nov 10, 2023

Unfortunately, I don’t have my laptop with me for the weekend, so I'm unable to test this.

@atomfrede
Copy link
Member

It seems like it's not working. Did

gh pr checkout 24181
rm -rf node_modules
npm ci
npm link

In sample folder jhipster and, selecting english as native language, french is still selected by default for the additional languages.

I also checked jhipster --install-path in the sample folder, it points correctly to my local git clone (~git/github/jhipster/generator-jhipster/dist). So maybe I am doing something wrong, but it seems still to be not correct.

@mshima
Copy link
Member Author

mshima commented Nov 10, 2023

Should we don't pre-select additional languages?

mraible
mraible previously approved these changes Nov 13, 2023
@mraible
Copy link
Contributor

mraible commented Nov 13, 2023

Should we don't pre-select additional languages?

In previous versions, there were no pre-selected languages. This PR's "selected at the top" logic makes it more obvious. I'm OK with it, but I prefer the old way with no pre-selected.

@mshima
Copy link
Member Author

mshima commented Nov 13, 2023

I am slightly inclined to have en/fr as additional languages.
Why?

  • this is something configurable though jdl.
  • configurable by prompt (only once)
  • jhipster --defaults shows i18n capabilities by default.

downsides:

  • need to select languages in jdl
  • need to deselect languages in prompt

Just need to remove these 3 lines:

if (options[ENABLE_TRANSLATION] && options[LANGUAGES] === undefined) {
options[LANGUAGES] = ['en', 'fr'];
}

@DanielFran any opinion?

@DanielFran
Copy link
Member

@mshima In my opinion, we should not pre-select or only pre-select default system language if that is the case.
I understand it simplifies tests, but the user experience is more important here.

@mshima mshima merged commit d6e435b into jhipster:main Nov 13, 2023
@mshima mshima deleted the skip_ci-languages branch November 13, 2023 23:24
@deepu105 deepu105 added this to the 8.1.0 milestone Dec 11, 2023
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.

French is auto-selected when choosing additional languages
5 participants