feat: add Indonesian (id) locale#682
Open
ardha27 wants to merge 1 commit into
Open
Conversation
Adds Bahasa Indonesia as a supported language:
- locales/id.json: full translation of 629 keys across 17 sections
(common, meta, nav, home, main, step1-5, graph, history, api,
progress, log, report, console)
- locales/languages.json: register 'id' entry with label and
llmInstruction 'Silakan jawab dalam bahasa Indonesia.'
Fills a gap in the existing i18n registry (zh, en, es, fr, pt, ru, de).
Indonesian has ~270M speakers and is widely used in Southeast Asian
academic and policy contexts — a natural fit for the multi-agent
simulation use cases MiroFish targets (e.g. policy rehearsal for
Indonesian ministries, USD/IDR economic scenarios, regional crisis
planning).
Indonesian users can switch via:
- Frontend: language picker in the UI
- API: Accept-Language: id header on backend calls
- LLM calls: get_language_instruction() will return the Indonesian
instruction, anchoring the LLM to respond in Bahasa Indonesia
Translations preserve technical terms (MiroFish, API, LLM, PDF, Zep)
and placeholder syntax (e.g. 'Bagian {title}: {conflictCount}...')
exactly as the upstream English file does.
Generated with DeepSeek (deepseek-chat); 629/629 keys validated
against en.json structure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Bahasa Indonesia as a supported language in MiroFish's i18n registry:
locales/id.json— full translation of 629 keys across 17 sections (common,meta,nav,home,main,step1–step5,graph,history,api,progress,log,report,console)locales/languages.json— register theidentry withlabelandllmInstructionWhy
The current i18n registry has 7 languages (zh, en, es, fr, pt, ru, de) but is missing Indonesian despite:
How to use
After this lands, Indonesian users can switch via:
import.meta.globinfrontend/src/i18n/index.js)Accept-Language: idheader on backend calls — theget_locale()route inbackend/app/utils/locale.pypicks it up automaticallyget_language_instruction()will return"Silakan jawab dalam bahasa Indonesia.", anchoring the LLM to respond in Bahasa Indonesia across ontology generation, simulation config, persona profiles, and reportsTranslation quality
Generated with
deepseek-chatfromen.json. Validated against the upstream English file:MiroFish,API,LLM,PDF,Zep, placeholders like{title}/{conflictCount}Spot check:
common.confirmcommon.cancelcommon.retrymeta.titlestep2.profileModalAgestep5.chatEmptyAgentreport.sectionConflictDowngradeFiles
locales/id.json(new, 39,648 bytes, 629 keys)locales/languages.json(modified, +4 lines foridentry)Risk
Zero. Additive change only — no existing behavior modified. Languages already not selected by users continue to behave identically. The 4-line addition to
languages.jsonfollows the exact pattern of the existing 7 entries.Checklist
languages.jsonregistration follows existing pattern