logo

Language files are expected to be in JSON format. Each file should contain key-value pairs, where the keys represent the translation IDs and the values are the corresponding translations.

Example en.json:

{
  "currentLanguage": "English",

  "greeting": {
    "hello": "Hello",
    "goodbye": "Goodbye"
  },
  "menu": {
    "play": "Play",
    "pause": "Pause"
  },
}

Example fr.json:

{
  "currentLanguage": "Français",

  "greeting": {
    "hello": "Bonjour",
    "goodbye": "Au revoir"
  },
  "menu": {
    "play": "Jouer",
    "pause": "Pause"
  },
}

The currentLanguage key is optional but recommended, as it helps in identifying the display name for the current language.