Skip to content

Clarify docs arugment #90

Closed
Closed

Description

@timotheemoulin

Can we update the example in the doc and add one with the full locale? I think that could help.

e.g.

wp language core install fr_FR

or at least write something in the options section under the <language> chapter.

Activity

  1. danielbachhuber commented on Feb 17, 2023

    @danielbachhuber
    Member

    @timotheemoulin I'm not sure I understand your suggestion... want to submit a pull request with your suggested change?

  2. ernilambar commented on Jun 5, 2024

    @ernilambar
    Member

    @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 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.

  3. changed the title [-]Change doc example[/-] [+]Clarify docs arugment[/+] on Jun 7, 2024
  4. danielbachhuber commented on Jun 7, 2024

    @danielbachhuber
    Member

    @ernilambar Thanks for clarifying — that makes sense!

  5. UmeshSingla commented on Jun 13, 2024

    @UmeshSingla
    Contributor

    Working on it.

  6. swissspidy commented on Aug 8, 2024

    @swissspidy
    Member

    Fixed by #153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions