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.

brnx-cinemasystem/modules/shared/config.lua
config.locale = 'en'
brnx-cinemasystem/modules/locales/jp.json
// JAPANESE
{
  "CURRENCY": "JPY",
  "SHOP": {
    "PURCHASE": "{name}を{price}で1枚購入しました。",
    "HAS_TICKET": "このチケットはすでに購入済みです。",
    "NO_MONEY": "お金が足りません。",
    "PURCHASE_TICKET": "{name}の映画のチケットを{hour}時、{room}の部屋で購入しました。"
  },
  "TABLET": {
    "PAYMENT": "支払い",
    "ROOM": "部屋",
    "NO_FILMS": "今日は視聴可能な映画はありません。",
    "SELECT_A_TIME": "時間を選択",
    "FINALIZE_PURCHASE": "チケット購入を完了しますか?",
    "CONFIRM": "確認",
    "CANCEL": "キャンセル",
    "BUY": "購入"
  },
  "ROOM": {
    "NO_TICKET": "このセッションのチケットをまだ持っていません。",
    "NO_SESSION": "セッションはまだ始まっていません。",
    "FINISHED": "セッションは終了しました。"
  }
}