High Scripts
  • Welcome
  • Information
    • Discord
    • Licensing System
    • Terms of service
  • high-phone
    • 📀Installation
    • ⚠️Common issues
    • ⚙️Configuration
      • 🖼️Imgur setup
      • 👮Job contacts
      • 🚑Distress Signals
      • 🥯OX-Mysql compatibility
      • 🇺🇸Adding translation files
    • 👩‍💻Developers
      • Client-side exports
      • Server-side exports
      • Javascript API
      • Events
      • Creating new apps
  • HIGH-3DSOUNDS
    • 📀Installation
    • ⚠️Common issues
    • 👩‍💻Developer API
      • Client-side exports
      • Server-side exports
Powered by GitBook
On this page

Was this helpful?

  1. high-phone
  2. Configuration

Adding translation files

You can add your own translations and if you're nice enough you can even share them to our community on our discord!

PreviousOX-Mysql compatibilityNextDevelopers

Last updated 2 years ago

Was this helpful?

  1. Create a .lua file in locales folder and name it however you want.

  2. Copy the code from en.lua and paste it into the new LUA file.

  3. Open the locale file and change Config.Languages["en"] to Config.Languages["yourlanguage"]

  4. Now just translate all the messages, and if you want, share the locale file in our snippets channel!

To use the locale, change the Config.Language in high_phone/config.lua to your new locale's name.

  1. Create a .js file in html/js/locales folder and name it however you want.

  2. Copy the code from en.js and paste it into the new JS file.

  3. Head to index.html file located in html folder and find the line

    <script type="text/javascript" src="js/locales/en.js"></script>

  4. Copy that line and paste it below, and just change js/locales/en.js to the directory of your new locale file, e.g. js/locales/yourlocalefilename.js

  5. Open the locale file and change Locales["en"] to Locales["yourlanguage"]

  6. Now just translate all the messages!

⚙️
🇺🇸
discord group's