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
show language code #13994
show language code #13994
Conversation
Codecov Report
@@ Coverage Diff @@
## main #13994 +/- ##
==========================================
- Coverage 55.58% 55.57% -0.02%
==========================================
Files 1275 1275
Lines 31833 31839 +6
Branches 5734 5738 +4
==========================================
Hits 17695 17695
- Misses 12324 12329 +5
- Partials 1814 1815 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
hi @yangfei4913438 thank you for taking the time creating this PR. still, I don't think showing the iso code only would be a good solution if the idea is to have a consistent behavior with the data shown in the create modal (e.g.
I think it needs to be discussed internally before though, do you have an opinion on that solution @gu-stav ? |
e4c8db8
to
0c2c2d1
Compare
@ronronscelestes done |
packages/plugins/i18n/admin/src/components/ModalEdit/BaseForm.js
Outdated
Show resolved
Hide resolved
Hi @yangfei4913438! It seems that tests are failing, could you have a look into it? 🙏 |
53fd852
to
8763383
Compare
8763383
to
2a87f47
Compare
defaultLocale feels like a reserved keyword, and after I replaced it with a common word, it didn't prompt any more errors. |
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.
LGTM, thank you for this improvement @yangfei4913438!
What does it do?
When editing or adding languages, the display name and language code should not be displayed as the same text.
Why is it needed?
The language code and the language display name, both of which are shown as the language display name, do not make sense.
How to test it?
When you edit a language or add a new language
example:
Now it is all displayed as language names
I want to see the language code and the language name