Module:Translate/doc

From the Star Citizen Wiki, the fidelity™ encyclopedia

This is the documentation page for Module:Translate

Function list
L 23 — guessDataset
L 38 — load
L 64 — formatMessage
L 90 — methodtable.format
L 108 — methodtable.formatInLanguage
L 123 — Translate.doc
L 135 — Translate.getTemplateData
L 231 — methodtable.translate
L 241 — multilingualIfActive
L 272 — Translate.new

This module allows templates and modules to be easily translated as part of the multilingual templates and modules project. Instead of storing English text in a module or a template, Translate module allows modules to be designed language-neutral, and store multilingual text in the /i18n.json subpage. This way your module or template will use those translated strings (messages), or if the message has not yet been translated, will fallback to English. When someone updates the translation table, your page will automatically update (might take some time, or you can purge it), but no change in the template or module is needed on any of the wikis. This process is very similar to MediaWiki's localisation, and supports all standard localization conventions such as {{PLURAL|...}} and other parameters.

See also

🍪 We use cookies to keep session information to provide you a better experience.