wikimedia / jquery.i18n

🌐 jQuery based internationalization library
GNU General Public License v2.0
704 stars 144 forks source link

Load whole directory structure. #221

Closed Lapotor closed 3 years ago

Lapotor commented 3 years ago

Hello,

is it possible to load a complete directory and it's sub directories? Like:

$.i18n().load( {
  en: 'i18n/en/'
});
santhoshtr commented 3 years ago

No. it is not possible to get all files in directory. It is not possible do using web fetch apis, a limitation independent of jquery.i18n. Please refer documentation for different ways a localization file can be used.