Skip to content

Add localization support #7

@Romejanic

Description

@Romejanic

Add support for localized command and option names. Will also need to rework the choice labels to account for localizations. Possible solutions I'm thinking of include:

  • Adding a name_localizations/description_localizations property to commands
  • Using a separate locales.json file to contain localization data

e.g. (first proposal)

{
  "command": {
    "description": "My test command",
    "name_localizations": {
      "fr": "commande"
    },
    "description_localizations": {
      "fr": "Ma commande de test"
    }
  }
}

e.g. (second proposal)
commands.json

{
  "command": {
    "description": "My test command"
  }
}

locale.json

{
  "command": {
    "names": {
      "fr": "commande"
    },
    "descriptions": {
      "fr": "My test command"
    }
  }
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions