Download the PHP package mouf/html.utils.i18nweblibrary without Composer
On this page you can find all versions of the php package mouf/html.utils.i18nweblibrary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mouf/html.utils.i18nweblibrary
More information about mouf/html.utils.i18nweblibrary
Files in mouf/html.utils.i18nweblibrary
Package html.utils.i18nweblibrary
Short Description This implementation of a Weblibrary will load different JS files based on the current language used. Useful to load translation files in JS.
License MIT
Homepage http://mouf-php.com/packages/mouf/html.utils.i18nweblibrary
Informations about the package html.utils.i18nweblibrary
I18nWebLibrary
This special kind of WebLibrary will load different Javascript files based on the current locale.
How does it work?
You simply put a [lang] placeholder in the file name you want to load.
For instance:
javascript/messages-[lang].js
If the current locale used is French, the file requested will be javascript/messages-fr.js
.
If the current locale used is German, the file requested will be javascript/messages-de.js
...
If the current locale used is the default one, the file requested will be javascript/messages-default.js
.
The locale is decided thanks to the $languageDetection
property of I18nWebLibrary
.
This property must point to a class implementing Fine's LanguageDetectionInterface interface.
All versions of html.utils.i18nweblibrary with dependencies
mouf/html.utils.weblibrarymanager Version ~3.0
mouf/utils.i18n.fine Version >=3.0,<5.0