2025-04-12- translation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
=Translation Microfrontend= | =Translation Microfrontend= | ||
==function== | ==function== | ||
==S3== | ==S3== | ||
*Store translations of each language in their respective directory. | *Store translations of each language in their respective directory. | ||
| Line 8: | Line 9: | ||
/{language_name} | /{language_name} | ||
-{namespace_name}.json | -{namespace_name}.json | ||
===.json file=== | |||
<syntaxhighlight lang="Json"> | |||
{ | |||
"greeting": "Hello", | |||
"text": "Thank you for visiting our website.", | |||
"language": "Language", | |||
"Hi": "What's up", | |||
"Hello": "greeting from translation" | |||
} | |||
</syntaxhighlight> | |||
===Object link=== | ===Object link=== | ||
Revision as of 00:27, 15 April 2025
Translation Microfrontend
function
S3
- Store translations of each language in their respective directory.
S3 tree
/translations-language
/locales
/{language_name}
-{namespace_name}.json
.json file
{
"greeting": "Hello",
"text": "Thank you for visiting our website.",
"language": "Language",
"Hi": "What's up",
"Hello": "greeting from translation"
}
Object link
- format
"https://translations-language.s3.us-east-2.amazonaws.com/locales/Template:Lng/Template:Ns.json"
- example
"https://translations-language.s3.us-east-2.amazonaws.com/locales/en/buying.json"