RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library
Call TracerDate UtilsDebug DrawingFilter Chainutils/ - Utility ModulesHeatmap GeneratorHTTP JSON ServerInteractive ShellLanguage MapPerformance ProfilerPixel Drawing LibraryHTTP ServerTorqueScript ParserWebSocket Server

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API Referencecommonutils

Language Map

Module defined in `lua/common/utils/languageMap.lua`. Maps ISO language and country codes to human-readable names. Includes Weblate translation platform codes.

Module defined in lua/common/utils/languageMap.lua. Maps ISO language and country codes to human-readable names. Includes Weblate translation platform codes.


Exports

Functions

M.resolve(key)

Resolve a language/locale code to a human-readable name. Handles Weblate codes, composite locale codes (e.g., "en_US" → "English (United States)"), and plain ISO 639-1 codes.

  • Parameters:
    • key - string - Language/locale code (e.g., "en", "de", "en_US", "zh_Hant")
  • Returns: string - Human-readable name (returns the key itself if unrecognized)

Variables

M.countries

  • Type: table (string→string)
  • Description: ISO 3166-1 country code to country name mapping (~250 entries)

M.languages

  • Type: table (string→string)
  • Description: ISO 639-1 language code to language name mapping

M.weblateCodes

  • Type: table (string→string)
  • Description: Weblate translation platform language codes (lowercase keys only)

Internal Notes

  • ~570 lines, mostly static data tables
  • resolve looks up in languages table
  • Weblate codes may differ from standard ISO codes

See Also

  • utils/ - Utility Modules - Directory overview
  • calltracer Reference - Related reference
  • dateUtils Reference - Related reference
  • debugDraw Reference - Related reference
  • Common Libraries Overview - Guide

Interactive Shell

Module defined in `lua/common/utils/interactiveShell.lua`. Interactive Lua REPL shell for runtime debugging within BeamNG.

Performance Profiler

Module defined in `lua/common/utils/perf.lua`. Performance profiler that tracks function execution times using debug hooks, with windowed statistics and CSV export.

On this page

ExportsFunctionsM.resolve(key)VariablesM.countriesM.languagesM.weblateCodesInternal NotesSee Also