RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

cdefDebugDraw ReferencecdefGpuMesh ReferencecdefImgui ReferencecdefMath Referencecdefs ReferencecontrolSystems Referencecsvlib ReferencedelayLine Referencedequeue ReferencedevUtils ReferenceEvent Referenceextensions Referencefilters Referencegraphpath Referenceguihooks ReferenceinputFilters ReferenceinterpolatedMap Referenceintrospection ReferencejbeamWriter Referencejson-ast Referencejson ReferencejsonDebug ReferencejsonPrettyEncoderCustom Referencekdtreebox2d Referencekdtreebox3d Referencekdtreepoint3d Referencelpack ReferenceluaBinding ReferenceluaCore ReferenceluaProfiler Referencemathlib Referenceparticles Referencequadtree Referencesettings ReferencetcpServer ReferencetimeEvents Referenceutils Reference
calltracer ReferencedateUtils ReferencedebugDraw Referencefilterchain Referenceutils/ - Utility Modulesheatmap ReferencehttpJsonServer ReferenceinteractiveShell ReferencelanguageMap Referenceperf Referencepixellib ReferencesimpleHttpServer ReferencetorqueScriptParser ReferencewsUtils Reference

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

languageMap Reference

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

interactiveShell Reference

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

perf Reference

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 Notes