Load texts from external JSON files
Posted: Fri Feb 06, 2026 10:46 am
Hi Pablo / everyone,
I’m building a website with WYSIWYG Web Builder and I’d like to implement multilingual support (for example: Spanish/English) in a maintainable way.
My goal is:
* Design pages normally in WWB.
* Avoid hardcoding visible text directly in each element.
* Load texts from external JSON files (one file per language, e.g. es.json, en.json).
* Switch language with a button/dropdown.
* Keep selected language in localStorage (or similar), so it persists between visits.[/list]
I’m considering using data-i18n attributes in elements and a JavaScript function that fetches the selected JSON and replaces element text at runtime.
I know there are extensions that can help with multilingual websites, but I’d specifically like to understand and use this JSON-based approach.
Could you confirm if this is a recommended method in WWB?
If yes, what is the cleanest way to integrate it in WWB projects (layout grids, forms, menus, extensions)?
Also, are there known limitations when using this method?
Thanks in advance!
I’m building a website with WYSIWYG Web Builder and I’d like to implement multilingual support (for example: Spanish/English) in a maintainable way.
My goal is:
* Design pages normally in WWB.
* Avoid hardcoding visible text directly in each element.
* Load texts from external JSON files (one file per language, e.g. es.json, en.json).
* Switch language with a button/dropdown.
* Keep selected language in localStorage (or similar), so it persists between visits.[/list]
I’m considering using data-i18n attributes in elements and a JavaScript function that fetches the selected JSON and replaces element text at runtime.
I know there are extensions that can help with multilingual websites, but I’d specifically like to understand and use this JSON-based approach.
Could you confirm if this is a recommended method in WWB?
If yes, what is the cleanest way to integrate it in WWB projects (layout grids, forms, menus, extensions)?
Also, are there known limitations when using this method?
Thanks in advance!