Skip to content
Atlas

Docs

Locales

Player-facing strings live in the Atlas locales hub.

Hub

All player-facing strings live in:

text
resources/[atlas]/atlas_extras/locales/<lang>/<namespace>.json

Do not add new locales/ trees on individual Atlas resources.

Common namespaces

FileUsed by
extras.jsonatlas_extras modules
easytime.jsonweather / time module
garages.jsonatlas_garages
multichar.jsonatlas_multichar
admin.jsonatlas_admin
hud.jsonatlas_hud
fuel.jsonfuel surfaces
chat.jsonatlas_chat
ui.jsonshared UI chrome
common.json / core.jsonshared gameplay / core
ox_lib.json / ox_inventory.json / ox_target.jsonox stack
community_bridge.json / illenium-appearance.jsonbridge / appearance
airdrops.jsonatlas_airdrops
fishing.jsonatlas_fishing
coinshop.jsonatlas_coinshop
playtimeshop.jsonatlas_playtimeshop
rage.jsonatlas_rage (Atlas Main hub)
dailyrewards.jsonatlas_dailyrewards
weeklyquest.jsonatlas_weeklyquest
family.jsonatlas_family

Add a language by copying locales/en/<namespace>.jsonlocales/<code>/.

Lua API

lua
shared_script '@atlas_extras/imports.lua'

L('chat.ui.placeholder')
L('garages.takeOut')

local T = AtlasLocale.ns('garages')
T('takeOut', plate)

AtlasLocale.table('admin') -- full pack for NUI

NUI

Push after ready and on atlas_locale:changed:

lua
AtlasLocale.pushNui('chat')

HTML:

html
<script src="nui://atlas_extras/web/nui_locale.js"></script>
<input data-i18n="ui.placeholder" data-i18n-attr="placeholder">

Checklist

  • Keys in atlas_extras/locales/en/<namespace>.json
  • Client pushes pack on open/ready
  • UI reads via AtlasUI / pushed locale — no hardcoded English for new strings