I18n-module: Feature request: Using json files for storing messages

Created on 13 Feb 2018  路  1Comment  路  Source: nuxt-community/i18n-module

Thank you guys for this awesome module.
Using json files for messages is a standard in i18n.
Another important feature is loading just the active language messages.

This feature request is available on Nuxt.js community (#c9)
feature-request

Most helpful comment

Hi @mahmoudmy !
There should be no problem using JSON files to store your translations.

vueI18n: {
  messages: { en: require('./lang/en-US.json') }
}

Loading active language only seems to be a most wanted feature, I'd really like to implement it but I'm not sure how to approach it yet and did not have much time to think about it, I hope I'll be able to get to it soon. Any help or ideas are very welcome :)

Thanks!

[edit] Just pre-released v2.3.0 with support for lazy-loading translations, hope you can give it a try :) More info here: https://github.com/nuxt-community/nuxt-i18n/issues/23

>All comments

Hi @mahmoudmy !
There should be no problem using JSON files to store your translations.

vueI18n: {
  messages: { en: require('./lang/en-US.json') }
}

Loading active language only seems to be a most wanted feature, I'd really like to implement it but I'm not sure how to approach it yet and did not have much time to think about it, I hope I'll be able to get to it soon. Any help or ideas are very welcome :)

Thanks!

[edit] Just pre-released v2.3.0 with support for lazy-loading translations, hope you can give it a try :) More info here: https://github.com/nuxt-community/nuxt-i18n/issues/23

Was this page helpful?
0 / 5 - 0 ratings

Related issues

albanm picture albanm  路  20Comments

NadhirBoukhenifra picture NadhirBoukhenifra  路  30Comments

Josepdal picture Josepdal  路  17Comments

lucassith picture lucassith  路  28Comments

adetbekov picture adetbekov  路  21Comments