-
Notifications
You must be signed in to change notification settings - Fork 7
File Organization
Vitor Albert edited this page Mar 6, 2026
·
1 revision
Recommendation: Use multi-folders to organize your language files!
Files directly inside the language folder (e.g., langs/pt_br/messages.yml) do NOT use the filename as a prefix.
- Key
welcomeinmessages.ymlβ%lang_welcome% β οΈ Warning: If two root files have the same keywelcome, they will conflict!
Files inside subfolders use the folder and filename as a prefix. This prevents conflicts and keeps things organized.
- File:
langs/pt_br/menus/main.yml - Key:
title - Placeholder:
%lang_menus.main_title%(Format:folder.filename_key)
plugins/IGLanguages/langs/
βββ en_us/
β βββ example.yml β %lang_keyname%
β βββ menus/
β β βββ main.yml β %lang_menus.main_keyname%
β βββ messages/
β βββ system.yml β %lang_messages.system_keyname%
βββ pt_br/
β βββ example.yml
β βββ menus/
β β βββ main.yml
β βββ messages/
β βββ system.yml
βββ th_th/
βββ example.yml
| File Location | Key in YAML | Resulting Placeholder |
|---|---|---|
langs/en_us/example.yml |
welcome |
%lang_welcome% |
langs/en_us/menus/main.yml |
title |
%lang_menus.main_title% |
langs/en_us/messages/system.yml |
greeting |
%lang_messages.system_greeting% |
langs/en_us/systems/board.yml |
money |
%lang_systems.board_money% |
Tip: All keys are case-insensitive.
%lang_Welcome%and%lang_welcome%resolve to the same translation.
Next: Examples