I18n-module: How to trigger fallback to phrase instead of key?

Created on 12 Nov 2020  ·  1Comment  ·  Source: nuxt-community/i18n-module

Hi, folks.

Is it posible for keys that did not exists on locale fallback to default locale key.

For example: I have en as default locale and ru as other, the en locale key in en-US.js file.:

{
  "client_agreement": "Client agreement"
}

on ru-RU.js I have not this key.

By default behavior when I switch to ru locale, I see on site this:

client_agreement

But I want to see this instead:

Client agreement

Is it possible, Thanks.

question❓

Most helpful comment

    i18n: {
        // ...
        vueI18n: {
            fallbackLocale: 'en',
        }
    }

More information at https://i18n.nuxtjs.org/options-reference#vuei18n

>All comments

    i18n: {
        // ...
        vueI18n: {
            fallbackLocale: 'en',
        }
    }

More information at https://i18n.nuxtjs.org/options-reference#vuei18n

Was this page helpful?
0 / 5 - 0 ratings

Related issues

koteezy picture koteezy  ·  16Comments

Josepdal picture Josepdal  ·  17Comments

thariddler picture thariddler  ·  23Comments

jonalxh picture jonalxh  ·  15Comments

manniL picture manniL  ·  24Comments