Skip to content

Localized Languages (LoLa) is a context overhaul script for multilingual accessibility in AI Dungeon scenarios/adventures~ ❤️

License

Notifications You must be signed in to change notification settings

LewdLeah/Localized-Languages

Repository files navigation

Localized Languages (LoLa)

Made by LewdLeah ❤️

Overview

Localized Languages (LoLa) is a context overhaul script for playing AI Dungeon in your language of choice. LoLa also improves player inputs and supports (optional) Auto-Cards integration. It’s free and open-source for anyone to use however they see fit. Creators are welcome to use LoLa for multilingual accessibility in their published scenarios. Fully compliant with international standard ISO 639-1 and more~ ❤️

Supported Languages

Expand to view the full list of supported languages! 🌐
  1. English
  2. Abkhazian / аҧсуа / Apsua / აფსუა / Abkhaz
  3. Abkhazian (abc)
  4. Afar / Qafar Af
  5. Afrikaans
  6. Akan / ákán
  7. Akan (abc)
  8. Albanian / Shqip
  9. Amharic / አማርኛ / Amarəñña
  10. Amharic (abc)
  11. Arabic / اَلْعَرَبِيَّةُ / Al-ʿarabiyyah
  12. Arabic (abc)
  13. Aragonese / Aragonés
  14. Armenian / հայերեն / Hayeren
  15. Armenian (abc)
  16. Asmr / Whisper / Asmr Whisper Script
  17. Assamese / অসমীয়া / ôxômiya / Asamiya
  18. Assamese (abc)
  19. Avaric / авар мацӏ / اوار ماض / Avar Maz / Avar
  20. Avaric (abc)
  21. Avestan / Upastawakaēna
  22. Aymara / Aymaran
  23. Azerbaijani / Azərbaycan Dili / آذربایجان دیلی / азәрбајҹан дили / Azeri
  24. Azerbaijani (abc)
  25. Bambara / ߓߡߊߣߊ߲ߞߊ߲ / بَمَنَنكَن / Bamanankan / Bamana
  26. Bashkir / башҡорт теле / Başqort Tele / Bashkort
  27. Bashkir (abc)
  28. Basque / Euskara / Euskera
  29. Belarusian / беларуская мова / Biełaruskaja Mova
  30. Belarusian (abc)
  31. Bengali / বাংলা / Bāŋlā / Bangla
  32. Bengali (abc)
  33. Bislama
  34. Bosnian / босански / Bosanski / Bosniak
  35. Bosnian (abc)
  36. Brainrot
  37. Brazilian / Português Brasileiro / Brazilian Portuguese
  38. Breton / Brezhoneg
  39. Bulgarian / български / Bulgarski
  40. Bulgarian (abc)
  41. Burmese / မြန်မာစာ / Mrãmācā / Myanmar
  42. Burmese (abc)
  43. Catalan / Valencian / Català / Valencià
  44. Central Khmer / ខេមរភាសា / Khémôrôphéasa / Khmer / Cambodian
  45. Central Khmer (abc)
  46. Chamorro / Finu' Chamoru
  47. Chechen / нохчийн мотт / Noxçiyn Mott / Chechnyan / Chechnian
  48. Chechen (abc)
  49. Chichewa / Chewa / Nyanja / Chinyanja
  50. Chinese / Simplified Chinese / Mandarin / 简化字 / Jiǎnhuàzì / 简体字 / Jiǎntǐzì / Pinyin
  51. Chinese (abc)
  52. Church Slavic / Old Slavic / славе́нскїй ѧ҆зы́къ
  53. Church Slavic (abc)
  54. Chuvash / чӑвашла / çăvaşla
  55. Chuvash (abc)
  56. Cornish / Kernowek
  57. Corporate / Business Speak / Corporate Jargon
  58. Corsican / Corsu
  59. Cree / ᓀᐦᐃᔭᐁᐧᐃᐧᐣ / Nehiyawewin
  60. Cree (abc)
  61. Croatian / Hrvatski / Crovatian
  62. Czech / čeština / Czechian
  63. Danish / Dansk
  64. Divehi / Dhivehi / Maldivian / ދިވެހި
  65. Dutch / Flemish / Nederlands
  66. Dzongkha / རྫོང་ཁ་ / Bhutanese
  67. Dzongkha (abc)
  68. Esperanto
  69. Estonian / Eesti Keel
  70. Ewe / èʋegbe
  71. Faroese / Føroyskt / Faeroese
  72. Fijian / Na Vosa Vakaviti
  73. Finnish / Suomi
  74. French / Français
  75. Fulah / ࢻُلْࢻُلْدٜ / 𞤬𞤵𞤤𞤬𞤵𞤤𞤣𞤫 / Fulfulde / ݒُلَارْ / 𞤨𞤵𞤤𞤢𞥄𞤪 / Pulaar / Fula / Fulani
  76. Gaelic / Scottish Gaelic / Gàidhlig / Scots Gaelic
  77. Galician / Galego
  78. Ganda / Luganda
  79. Georgian / ქართული / Kharthuli
  80. Georgian (abc)
  81. German / Deutsch
  82. Greek / νέα ελληνικά / Néa Ellêniká
  83. Greek (abc)
  84. Guarani / Avañe'ẽ / Guaraní
  85. Gujarati / ગુજરાતી / Gujarātī
  86. Gujarati (abc)
  87. Haitian Creole / Haitian / Kreyòl Ayisyen
  88. Hausa / هَرْشٜن هَوْس / Halshen Hausa / Hausan
  89. Hebrew / עברית / Ivrit
  90. Hebrew (abc)
  91. Herero / Otjiherero
  92. Hindi / हिन्दी / Hindī
  93. Hindi (abc)
  94. Hiri Motu / Police Motu / Pidgin Motu
  95. Hungarian / Magyar Nyelv / Magyar
  96. Icelandic / íslenska
  97. Ido
  98. Igbo / ásụ̀sụ́ ìgbò
  99. Indonesian / Bahasa Indonesia
  100. Interlingua
  101. Interlingue / Occidental
  102. Inuktitut / ᐃᓄᒃᑎᑐᑦ
  103. Inupiaq / Iñupiaq / Inupiat / Inupiatun
  104. Irish / Gaeilge / Irish Gaelic
  105. Italian / Italiano
  106. Japanese / 日本語 / Nihongo
  107. Japanese (abc)
  108. Javanese / ꦧꦱꦗꦮ / Basa Jawa
  109. Kalaallisut / Greenlandic
  110. Kannada / ಕನ್ನಡ / Kannađa / Kannadan / Canarese
  111. Kannada (abc)
  112. Kanuri / كَنُرِيِه / Kànùrí
  113. Kashmiri / कॉशुर / كأشُر / Kosher / Koshur
  114. Kashmiri (abc)
  115. Kazakh / қазақша / Qazaqşa / قازاقشا / Qazaq
  116. Kazakh (abc)
  117. Kikuyu / Gikuyu / Gĩgĩkũyũ
  118. Kinyarwanda / Ikinyarwanda / Rwandan / Rwanda
  119. Klingon / Tlhingan
  120. Komi / коми кыв / Zyran / Zyrian / Komi-Zyryan
  121. Komi (abc)
  122. Kongo / Kikongo
  123. Korean / 한국어 / Hangugeo / 조선말 / Chosŏnmal
  124. Korean (abc)
  125. Kuanyama / Oshikwanyama / Cuanhama / Kwanyama
  126. Kurdish / کوردی / Kurdî
  127. Kurdish (abc)
  128. Kyrgyz / Kirghiz / кыргыз / قىرعىز
  129. Kyrgyz (abc)
  130. Lao / ພາສາລາວ / Phasa Lao / Laotian
  131. Lao (abc)
  132. Latin / Latinum
  133. Latvian / Latviski / Lettish
  134. Leetspeak / Eleet / Hacker Speak / L33t
  135. Legalese / Lawyer / Legal Language
  136. Limburgish / Limburgan / Limburger / Lèmburgs
  137. Lingala / Lingála / Ngala
  138. Lingua-Technis / Cant Mechanicus / Techna-Lingua / Binharic
  139. Lithuanian / Lietuvių
  140. Luba-Katanga / Kiluba / Luba-Shaba
  141. Luxembourgish / Letzeburgesch / Lëtzebuergesch / Luxembourgian
  142. Macedonian / македонски / Makedonski
  143. Macedonian (abc)
  144. Malagasy / مَلَغَسِ
  145. Malay / بهاس ملايو / Bahasa Melayu
  146. Malayalam / മലയാളം / Malayāļã
  147. Malayalam (abc)
  148. Maltese / Malti
  149. Manx / Gaelg / Gailck / Manx Gaelic
  150. Maori / Reo Māori
  151. Marathi / मराठी / Marāṭhī / Maharashtran
  152. Marathi (abc)
  153. Marshallese / Kajin M̧ajeļ / Ebon
  154. Mongolian / монгол хэл / Mongol Xel / Mongol
  155. Mongolian (abc)
  156. Nauru / Dorerin Naoe / Nauruan
  157. Navajo / Navaho / Diné Bizaad / Naabeehó Bizaad
  158. Navi / Lì'fya Lena'vi / Na'vi
  159. Ndonga / Oshindonga
  160. Nepali / नेपाली भाषा / Nepālī Bhāśā / Nepalese / Gorkhali
  161. Nepali (abc)
  162. North Ndebele / Sasenyakatho / Mthwakazi Ndebele
  163. Northern Sami / Davvisámegiella
  164. Norwegian / Norsk
  165. Norwegian Bokmal / Bokmål / Norsk Bokmål
  166. Norwegian Nynorsk / Nynorsk / Norsk Nynorsk
  167. Occitan / Provençal / Provential / Provencal
  168. Ojibwe / ᐊᓂᔑᓈᐯᒧᐎᓐ / Anishinaabemowin / Ojibway / Otchipwe / Ojibwemowin
  169. Old English / ænglisc / Shakespearean English / Anglo-Saxon
  170. Oriya / ଓଡ଼ିଆ / Odia / Odian / Odishan / Orissan
  171. Oriya (abc)
  172. Orkish / Mek Jargon
  173. Oromo / Afaan Oromoo / Oromoo
  174. Ossetian / Ossetic / ирон ӕвзаг / Iron ævzag / Ossete
  175. Ossetian (abc)
  176. Pali / Pāli / Pali-Magadhi
  177. Panjabi / Punjabi / ਪੰਜਾਬੀ / پنجابی / Pãjābī
  178. Panjabi (abc)
  179. Persian / فارسی / Fārsiy / Farsi
  180. Persian (abc)
  181. Pig Latin / Igpay Atinlay
  182. Pirate / Sea Shanty
  183. Polish / Polski / Język Polski / Polszczyzna
  184. Portuguese / Português / Português Europeu / European Portuguese
  185. Purple Prose / First Year English Major / Pretentious
  186. Pushto / Pashto / پښتو / Pax̌tow
  187. Pushto (abc)
  188. Quechua / Runa Simi / Kichwa Simi / Nuna Shimi / Quechuan
  189. Rhyme / Poem / Rhyme Scheme / Poetry
  190. Romanian / Moldavian / Română / ромынэ / Moldovan
  191. Romansh / Rumantsch / Rumàntsch / Romauntsch / Romontsch / Romansch
  192. Rundi / Ikirundi / Kirundi
  193. Russian / русский язык / Russkiĭ âzyk
  194. Russian (abc)
  195. Samoan / Gagana Sāmoa
  196. Sango / Yângâ Tî Sängö / Sangoic
  197. Sanskrit / संस्कृतम् / Saṃskṛtam
  198. Sanskrit (abc)
  199. Sardinian / Sardu / Sard
  200. Serbian / српски / Srpski
  201. Serbian (abc)
  202. Shona / Chishona
  203. Sichuan Yi / Nuosu / ꆈꌠꉙ / Nuosuhxop / Northern Yi / Liangshan Yi / Nosu
  204. Sichuan Yi (abc)
  205. Sindhi / سنڌي / सिन्धी / Sindhī
  206. Sindhi (abc)
  207. Sinhalese / Sinhala / සිංහල / Siṁhala
  208. Sinhalese (abc)
  209. Slovak / Slovenčina / Slovakian
  210. Slovenian / Slovenščina / Slovene
  211. Somali / Soomaali / 𐒈𐒝𐒑𐒛𐒐𐒘 / سٝومالِ / Somalian
  212. South Ndebele / Isindebele / Sakwandzundza
  213. Southern Sotho / Sesotho / Sotho
  214. Spanish / Castilian / Español / Castellano
  215. Sundanese / Basa Sunda / بَاسَا سُوْندَا
  216. Swahili / Kiswahili / كِسوَحِيلِ
  217. Swati / Siswati / Swazi
  218. Swedish / Svenska
  219. Tagalog / Wikang Tagalog
  220. Tahitian / Reo Tahiti
  221. Tajik / тоҷикӣ / Tojikī / Tajiki
  222. Tajik (abc)
  223. Tamil / தமிழ் / Tamiḻ / Thamizh
  224. Tamil (abc)
  225. Tatar / татар теле / Tatar Tele / تاتار تئلئ
  226. Tatar (abc)
  227. Telugu / తెలుగు
  228. Telugu (abc)
  229. Thai / ภาษาไทย / Phasa Thai / Siamese / Central Thai
  230. Thai (abc)
  231. Tibetan / བོད་སྐད་ / Bodskad / ལྷ་སའི་སྐད་ / Lhas'iskad / Standard Tibetan / Lhasa Tibetan
  232. Tibetan (abc)
  233. Tigrinya / ትግርኛ / Təgrəñña / Tigrigna
  234. Tigrinya (abc)
  235. Tonga / Lea Faka-Tonga / Tongan / Tonga Islands
  236. Traditional Chinese / 正體字 / 正体字 / Zhèngtǐzì / 繁體字 / Fántǐzì / 繁体字
  237. Traditional Chinese (abc)
  238. Tsonga / Xitsonga
  239. Tswana / Setswana / Sechuana
  240. Turkish / Türkçe / Türk Dili / Türkiye Türkçesi
  241. Turkmen / Türkmençe / түркменче / تۆرکمنچه
  242. Twi
  243. Uighur / ئۇيغۇر تىلى / Uyghur / уйғур тили / Uyƣur Tili
  244. Uighur (abc)
  245. Ukrainian / українська / Ukraїnska
  246. Ukrainian (abc)
  247. Urdu / اُردُو / Urduw
  248. Urdu (abc)
  249. Uzbek / ózbekça / ўзбекча / ئوزبېچه
  250. Valley Girl
  251. Venda / Tshivenḓa / Tshivenda
  252. Vietnamese / Tiếng Việt
  253. Volapuk / Volapük
  254. Walloon / Walon
  255. Welsh / Cymraeg
  256. Western Frisian / Frysk / Frisian / Fries
  257. Wolof / وࣷلࣷفْ
  258. Xhosa / Isixhosa / Xosa
  259. Yiddish / ייִדיש / Yidiš / Judeo-German
  260. Yiddish (abc)
  261. Yoruba / èdè Yorùbá
  262. Zhuang / Chuang / 話僮 / Vahcuengh
  263. Zulu / Isizulu

Gameplay Suggestions

  • Dear Creators, please add {Language: ${Select your language or leave empty:}} to your scenario Opening!
  • Adventure quality varies between different AI models, so try multiple
  • Quality also varies between different languages, especially rare ones
  • Use a response length of 200 tokens for the best results
  • Romanized language variants "(abc)" are not necessarily more coherent
  • Try to remain consistent by using only your selected language
  • Writing a custom opening in your language is helpful, though optional
  • The "Retry" button is your friend, especially near the beginning of new adventures
  • Muse, Dynamic Small, and Wayfarer Small (in that order) may struggle with non-English
  • Among the free models, Madness is (seemingly) the best for multilingual writing

Permission

LoLa is both free and open-source for anyone to use within their own scenarios or scripts, even including published works. You have my full permission to use, copy, or modify LoLa. Please enjoy! ❤️

Scenario Script Installation Guide

  1. Use the AI Dungeon website on PC (or view as desktop if mobile-only)
  2. Create a new scenario or edit one of your existing scenarios
  3. Open the DETAILS tab at the top while editing your scenario
  4. Scroll to the bottom and select EDIT SCRIPTS
  5. Select the Input tab on the left
  6. Delete all code within said tab
  7. Copy and paste the following code into your empty Input tab:
// Your "Input" tab should look like this
const modifier = (text) => {
  // Your other input modifier scripts go here (preferred)
  text = AutoCards("input", text);
  text = LocalizedLanguages("input", text);
  // Your other input modifier scripts go here (alternative)
  return { text };
};
modifier(text);
  1. Select the Context tab on the left
  2. Delete all code within said tab
  3. Copy and paste the following code into your empty Context tab:
// Your "Context" tab should look like this
const modifier = (text) => {
  // Your other context modifier scripts go here (preferred)
  [text, stop] = AutoCards("context", text, stop);
  text = LocalizedLanguages("context", text);
  // Your other context modifier scripts go here (risky)
  return { text, stop };
};
modifier(text);
  1. Select the Output tab on the left
  2. Delete all code within said tab
  3. Copy and paste the following code into your empty Output tab:
// Your "Output" tab should look like this
const modifier = (text) => {
  // Your other output modifier scripts go here (preferred)
  text = AutoCards("output", text);
  // Your other output modifier scripts go here (alternative)
  return { text };
};
modifier(text);
  1. Select the Library tab on the left
  2. Delete all code within said tab
  3. Open the Library code (hyperlink below) in a new browser tab
  1. Copy the full code from the page above and paste into your empty Library tab
  2. Click the big yellow SAVE button in the top right corner
  3. For private/personal use, submit {Language: ???} using Do/Say/Story (replace ??? with your language)
  4. When publishing scenarios, add {Language: ${Select your language or leave empty:}} to the Opening
  5. Step 20 is optional, but still VERY important! (defaults to English if blank) ❤️
Expand to learn why step 20 matters so much ℹ️

TL;DR - It's about effective communication, seamless user experiences, and good alignment between player expectations and actual scenario gameplay.

LoLa relies on step 20 (or step 19) in order to correctly identify the requested language. Therefore, I strongly recommend including {Language: ${Select your language or leave empty:}} anywhere within your scenario's Opening plot component. At the top, bottom, or anywhere in-between. Your choice.

Players of published works aren't going to understand this on their own, so it's extremely helpful for Creators to follow this step. And, if there's one thing I've learned from AI Dungeon players, it's that virtually no one reads the description. And that may be especially true for the players we're trying to help the most here.

Anyway, including this placeholder dramatically simplifies usage and prevents confusion. As a Creator myself, I strongly believe seamless user experiences are the most important characteristic of highly successful AI Dungeon scenarios. That's my personal opinion.

Genuinely...and I mean this with kindness: Assume players know nothing. So make things easy for them. Think of it as yet another dimension to accessibility. Simplicity and ease of use are key!

Thanks for listening, sorry about the excessive wall of text. 😅

Useful Links

Simple demo scenario

My AI Dungeon profile page

LoLa discussion thread

About

Localized Languages (LoLa) is a context overhaul script for multilingual accessibility in AI Dungeon scenarios/adventures~ ❤️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published