Kartik Scripts

Themes & Languages

๐ŸŽจ Two themes

Switch with one line: Config.UI.theme = 'frontier' or 'paper'. Every screen follows the theme, the admin panel and scene creator included.

FrontierPaper
Frontier themePaper theme
Dark panels, torn edges and paper grainNewspaper, telegram and registry props
Config.UI = {
    theme    = 'frontier',
    title    = 'The Frontier Gazette',
    subtitle = 'Choose who rides today',
    logo     = '',   -- 'logo.png' from the images folder, a url, or empty for the built-in emblem
}

A square transparent PNG around 256x256 works best for the logo.


๐ŸŒ Six languages

Set Config.Locale to one of these:

CodeLanguage
enEnglish
deGerman
frFrench
esSpanish
pt-brBrazilian Portuguese
plPolish

Every line, in Lua and the UI, comes from the locale file.

โž• Adding your own

  1. Copy locales/en.json to a new file, for example locales/it.json.
  2. Translate the values.
  3. Set Config.Locale = 'it'.

Lines you don't translate fall back to English. node tools/check-locales.mjs lists missing lines and broken placeholders.

On this page