Brunx
  • Home
  • Cinema System
    • Installation
    • Configuration
      • Language
      • Setting up cinema
      • Setting up store
      • Keybinds and commands
    • Frameworks
      • Client guide
      • Server guide
    • Exports and events
      • Client events
      • Server events
      • State bags
  • Ice-O-Rink System
    • Installation
    • Configuration
      • Ice Skates
      • Language
      • Setting up controls
      • Setting up wardrobe
      • Setting up peds
      • Setting up store
      • Keybinds and commands
    • Frameworks
      • Server guide
    • Inventorys
      • Server guide
      • Items
    • Exports and events
      • Server exports
      • Server events
      • State bags
Powered by GitBook
On this page
  1. Ice-O-Rink System
  2. Configuration

Language

It is possible to create or use existing languages within our script by accessing the file located at brnx-iceorinksystem/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-iceorinksystem/modules/config/config.lua file, as shown in the example below.

brnx-iceorinksystem/modules/config/config.lua
config.locale = 'en'

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:

brnx-iceorinksystem/modules/locales/ru.json
// RUSSIAN
{
  "CURRENCY": "RUB",
  "SHOP": {
    "BACK_END": {
      "PURCHASE": "Вы купили 1x {name} за {price}.",
      "NO_MONEY": "Недостаточно средств.",
      "NO_TICKET": "У вас нет билета для входа на арену."
    },
    "FRONT_END": {
      "SEARCH": "Поиск товара..."
    }
  },
  "PLAYER": {
    "BUTTONS": {
      "PLAY": "Воспроизвести",
      "PAUSE": "Пауза",
      "NEXT": "Следующий",
      "STOP": "Остановить",
      "QUEUE_NOW": "Добавить в очередь сейчас",
      "QUEUE_NEXT": "Следующим в очереди",
      "REMOVE": "Удалить"
    },
    "NOTIFY": {
      "URL_ERROR": "Возникла проблема с этой ссылкой, попробуйте снова.",
      "WAIT": "Подождите перед новой попыткой."
    }
  }
}
PreviousIce SkatesNextSetting up controls

Last updated 20 days ago