Home/Modules/languages

languages

system module languages

<img align="right" src="https://github.com/mearvk/SLeeLa/blob/master/images/debian/debian-logo.png" width="75" height="75" alt="SLeeLa">

SLeeLa Language Packs

Localize SLeeLa's outputs and prompts into a language other than English.

A language pack is a small, self-contained, dependency-free text file that maps a stable message key to its translation in one language. SLeeLa programs look up keys through the lib/languages library (SLLanguage / SLLanguageCatalog); tooling and front ends can read the same files directly. English (en) is the reference pack — every other pack translates the same key set.

Why keys, not sentences

Programs reference a stable key (e.g. prompt.continue) and the active pack supplies the display text. Changing language is then a one-line choice (SLLanguageCatalog.use("fr")) with no change to program logic — the SLeeLa rule decide in code, present in the user's language.

Pack file format

#!locale = fr
#!name = Français
#!direction = ltr
greeting.hello = Bonjour
prompt.continue = Continuer ?

Message key namespaces

NamespacePurpose
greeting.*Common greetings / salutations.
prompt.*Interactive prompts (yes/no, continue, retry).
word.*Single-word UI labels (yes, no, ok, cancel).
status.*Runtime status lines (ready, done, failed).
error.*Error message leads (not found, denied).
unit.*Measurement/あtime words (seconds, bytes).

The canonical key set and its English reference are in en.lang. The complete key list is in KEYS.md.

Included packs

Each pack below is an original, concise translation of the reference key set, authored for this repository and released under the repository's terms — no third-party pack content is bundled, so there are no external licenses to track.

CodeLanguageFileScript direction
enEnglishen.langltr (reference)
esEspañoles.langltr
frFrançaisfr.langltr
deDeutschde.langltr
ptPortuguêspt.langltr
itItalianoit.langltr
ja日本語ja.langltr
zh中文 (简体)zh.langltr
hiहिन्दीhi.langltr
ko한국어ko.langltr
thไทยth.langltr
arالعربيةar.langrtl

FRUCHST ranked dictionaries

The 80 research profiles also target a separate FRUCHST binary dictionary (fruchst.<code>.bin). FRUCHST v1 stores 1,000 ranked native-language headwords with aligned English, French, and Spanish definitions. The binary format is specified in FRUCHST_FORMAT.md, the 80-profile registry is FRUCHST_TARGETS.json, and the builder/validator is tools/fruchst.py. A profile is not considered complete until its corpus, definition sources, and redistribution licenses have been reviewed and its binary validates. Existing alphabet XML/JSON and language-pack files are independent and remain unchanged.

Using a pack from SLeeLa

import languages;

class Hello {
    void main() {
        SLLanguageCatalog cat = new SLLanguageCatalog();
        cat.use("fr");
        print(cat.text("greeting.hello"));   // Bonjour
        print(cat.text("prompt.continue"));  // Continuer ?
    }
}

A runnable demonstration is lib/languages/languages.sleela.

Settings

settings.conf is the single place to record a localization preference, so a chosen language persists and becomes the default. It is an INI-style file matching the repository's config/ convention:

[language]
active   = "en"   # BCP-47 code present here: en es fr de pt it ja zh hi ko th ar
fallback = "en"   # used when a key is missing or the active code is unknown
mode     = "folder"
relative_path = "."

[format]
respect_direction   = true   # honor a pack's #!direction (ltr/rtl)
enable_placeholders = true   # fill {0}, {1}, ... in messages
missing_key         = "key"  # "key" echoes the key; "empty" yields ""

[override]
env_var = "SLEELA_LANG"      # when set, overrides [language].active for a run

Switch the language of all localized output by changing one line (active = "th"), or per-run via the SLEELA_LANG environment variable. The lib/languages library reads these settings through SLLanguageSettings (active/fallback locale, direction, placeholder, and missing-key policy); its resolve(override) applies the override-then-active precedence.

Max Rupplin — MEARVK LLC — 2026


SLeeLa

<p align="center"><img src="images/sleela/sleela-wordmark.svg" alt="SLeeLa — The Now. The Ingredient." width="560"></p> <p align="center"><img src="https://github.com/mearvk/SLeeLa/blob/master/images/sleela-programming-language-002.jpg" alt="SLeeLa Marketing Logo" width="560"></p>

World language research directory — top 80 by total speakers

The subdirectories in this section are research profiles, separate from the existing localization language packs. The initial 80 entries follow the 2025 total-speaker ranking (native plus second-language speakers) and retain the source's language/variety distinctions. Speaker estimates are approximate and should be refreshed against a current primary dataset before formal analysis.

The directory records educational attainment, age structure, subjective well-being, fertility, and savings as geographic socioeconomic indicators. These measures are not intrinsic properties of a language or its speakers. “Maturity” is represented only through neutral demographic measures; “loveliness” is not objectively measurable and is represented, if desired, by sourced life-satisfaction/well-being measures. Fertility is recorded as total fertility rate (births per woman), and savings measures must specify household or national savings.

RankLanguageEstimated total speakers (millions)Directory
1English1500english/
2Mandarin Chinese1200mandarin-chinese/
3Hindi609.1hindi/
4Spanish558.5spanish/
5Standard Arabic334.8standard-arabic/
6French311.9french/
7Bengali284.3bengali/
8Portuguese266.6portuguese/
9Russian253.4russian/
10Indonesian252.4indonesian/
11Urdu246urdu/
12Standard German134standard-german/
13Japanese125.6japanese/
14Nigerian Pidgin120.7nigerian-pidgin/
15Egyptian Arabic118.6egyptian-arabic/
16Marathi99.3marathi/
17Vietnamese97vietnamese/
18Telugu95.8telugu/
19Hausa94.4hausa/
20Turkish91.3turkish/
21Western Punjabi90.3western-punjabi/
22Swahili87.2swahili/
23Tagalog86.9tagalog/
24Tamil86.3tamil/
25Yue Chinese85.7yue-chinese/
26Wu Chinese83.4wu-chinese/
27Iranian Persian82.6iranian-persian/
28Korean81.6korean/
29Thai71.4thai/
30Javanese69.2javanese/
31Italian66.2italian/
32Gujarati62.5gujarati/
33Levantine Arabic60.4levantine-arabic/
34Amharic60amharic/
35Kannada59.7kannada/
36Bhojpuri52.7bhojpuri/
37Sudanese Arabic52.3sudanese-arabic/
38Yoruba49.9yoruba/
39Jinyu Chinese48jinyu-chinese/
40Min Nan Chinese45.8min-nan-chinese/
41Polish45.3polish/
42Burmese44.4burmese/
43Algerian Arabic41.6algerian-arabic/
44Hakka Chinese40.7hakka-chinese/
45Lingala40.6lingala/
46Moroccan Arabic40.2moroccan-arabic/
47Odia39.5odia/
48Ukrainian39ukrainian/
49Xiang Chinese38.2xiang-chinese/
50Malayalam38.2malayalam/
51Sindhi36.9sindhi/
52Eastern Punjabi36.5eastern-punjabi/
53Sunda35.5sunda/
54Igbo33.7igbo/
55Dari33.4dari/
56Nepali33.1nepali/
57Malay29.5malay/
58Northern Uzbek29.4northern-uzbek/
59Zulu27.8zulu/
60Sa'idi Arabic27.3saidi-arabic/
61Northern Pashto27.2northern-pashto/
62West Central Oromo27west-central-oromo/
63Saraiki25.6saraiki/
64Dutch25.4dutch/
65Somali24.7somali/
66Romanian23.7romanian/
67Assamese23.6assamese/
68Gan Chinese22.6gan-chinese/
69Southern Pashto21.7southern-pashto/
70Cebuano21.4cebuano/
71Kazakh21.4kazakh/
72Magahi21magahi/
73Najdi Arabic20.9najdi-arabic/
74Sinhala20.2sinhala/
75Mesopotamian Arabic20.1mesopotamian-arabic/
76Xhosa19.2xhosa/
77Khmer19khmer/
78Afrikaans18.1afrikaans/
79Nigerian Fulfulde18nigerian-fulfulde/
80Maithili17.6maithili/

Ranking source: Top 200 Languages (Ethnologue 2025), updated 10 September 2025. Estimates are index values, not exact current populations. Language-vs-dialect classification and second-language proficiency thresholds vary by source.

Files 540