> For the complete documentation index, see [llms.txt](https://bluen-store.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bluen-store.gitbook.io/docs/cinema-system/configuration/language.md).

# Language

It is possible to create or use existing languages within **our script** by accessing the file located at `brnx-cinemasystem/modules/locales`. In this file, you can define translations for the desired language. To select the language to be used, simply configure the `config.locale` variable in the `brnx-cinemasystem/modules/shared/config.lua` file, as shown in the example below.

{% code title="brnx-cinemasystem/modules/shared/config.lua" %}

```lua
config.locale = 'en'
```

{% endcode %}

{% hint style="warning" %}
If you wish to create a new language, make sure to follow the structure of other example files. The `.json` file format should remain the same, but with translations adapted to the new language. See the example below:
{% endhint %}

{% code title="brnx-cinemasystem/modules/locales/jp.json" %}

```json
// JAPANESE
{
  "CURRENCY": "JPY",
  "PANEL": {
    "FRONT_END": {
      "CINEMAS": "シネマ",
      "EDIT_FILM": "映画を編集",
      "CREATE_FILM": "映画を作成",
      "ADD_FILM": "映画を追加",
      "NAME_FILM": "映画タイトル：",
      "MINUTES_FILM": "上映時間（分）：",
      "IMG_FILM": "画像（URL）：",
      "SYNOPSIS_FILM": "あらすじ：",
      "SCHEDULES_FILM": "上映スケジュール：",
      "PRICE_FILM": "価格：",
      "PLATFORM_FILM": "プラットフォーム：",
      "URL_FILM": "動画（URL）：",
      "REQUIRED_FIELD": "必須項目です。",
      "DELETE": "削除",
      "EDIT": "編集",
      "CONFIRM": "確認",
      "CANCEL": "キャンセル",
      "SAVE": "保存",
      "DELETE_FILM": "映画「{film}」を削除してもよろしいですか？すべてのセッションが終了し、更新を適用するために再起動されます。",
      "SAVE_FILM": "映画を保存してもよろしいですか？すべてのセッションが終了し、更新を適用するために再起動されます。"
    }
  },
  "TABLET": {
    "FRONT_END": {
      "LOADING": "読み込み中...",
      "PURCHASE_HISTORY": "購入履歴",
      "SELECT_A_TIME": "時間を選択",
      "NO_FILM": "現在、利用可能な映画はありません。",
      "BUY_TICKET": "{name} のチケットを {time} に {price} で購入しますか？",
      "CONFIRM": "確認",
      "CANCEL": "キャンセル",
      "ORDER": "注文",
      "PRODUCT": "商品",
      "VALUE": "金額",
      "DATE": "日付"
    }
  },
  "NOTIFYS": {
    "NO_SPACE": "リュックのスペースがありません。",
    "PURCHASE_ITEM": "{name} を {price} で1つ購入しました。",
    "NO_PURCHASE_ITEM": "この商品を購入するのに十分なお金がありません。",
    "FINISHED": "セッションが終了しました。",
    "HAS_TICKET": "このチケットはすでに購入済みです。",
    "NO_PURCHASE_TICKET": "チケットを購入するのに十分なお金がありません。",
    "PURCHASE_TICKET": "映画 {name} のチケットを {hour}時、ルーム {room} にて {price} で購入しました。",
    "NO_TICKET": "このセッションのチケットをまだ持っていません。",
    "NO_SESSION": "セッションはまだ開始されていません。スケジュール一覧：{schedules}。現在時刻：{currentTime}。"
  }
}

```

{% endcode %}
