You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have mentioned language code. But in our WordPress context, Language Code is different than WordPress Locale Code.
For Nepali language, language code is ne but WP locale code is ne_NP.
But some languages have same language code and locale code like ja, ar, etc.
In our docs, it is not particularly clear that we should use ne_NP instead of ne. In the example also, we have used Japanese which coincidently happens to have same language code and locale code.
So I believe OP is asking to clarify this confusion in the docs and examples.
Activity
danielbachhuber commentedon Feb 17, 2023
@timotheemoulin I'm not sure I understand your suggestion... want to submit a pull request with your suggested change?
ernilambar commentedon Jun 5, 2024
@danielbachhuber
Let me jot down my understanding here.
https://developer.wordpress.org/cli/commands/language/core/install/ -
wp language core install <language>... [--activate]<language>-Language code to install.We have mentioned language code. But in our WordPress context, Language Code is different than WordPress Locale Code.
For Nepali language, language code is
nebut WP locale code isne_NP.But some languages have same language code and locale code like
ja,ar, etc.In our docs, it is not particularly clear that we should use
ne_NPinstead ofne. In the example also, we have used Japanese which coincidently happens to have same language code and locale code.So I believe OP is asking to clarify this confusion in the docs and examples.
[-]Change doc example[/-][+]Clarify docs arugment[/+]danielbachhuber commentedon Jun 7, 2024
@ernilambar Thanks for clarifying — that makes sense!
UmeshSingla commentedon Jun 13, 2024
Working on it.
swissspidy commentedon Aug 8, 2024
Fixed by #153