Skip to content

Idea: Alias option for locales in command #168

@kitbs

Description

@kitbs

Use case: A user wants to publish locale files differently from how they are named in the package.

Scenarios:

  • Underscore instead of hyphen, e.g. zh-CNzh_CN
  • Favour script over region, e.g. zh-CNzh-Hans
  • Arbitrary, e.g. enenglish?
  • Clone an existing language to start editing a new variant, e.g. dede-CH

Ideas:

  • New --alias= option for publish command with format such as locale:alias(,locale:alias)*
  • Underscore or hyphen preference
  • Predefined mappings between common use cases:
    • zh-CN/zh-TWzh-Hans/zh-Hant (favour script over region, as in CDLR)
    • pt/pt-BRpr-PT/pt (favour Brazil as default over Portugal, as in CLDR)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions