Kirito
Kirito
NNuxt
Created by Omnislash on 2/5/2025 in #❓・help
i18n multiple files for each language
/locales/
/en/
home.json
about.json
index.ts
/fr/
home.json
about.json
index.ts
/locales/
/en/
home.json
about.json
index.ts
/fr/
home.json
about.json
index.ts
And the index file would like this :
import about from './about.json'
import home from './home.json'

export default {
...about,
...home
}
import about from './about.json'
import home from './home.json'

export default {
...about,
...home
}
And import it: import fr from './locales/fr'
9 replies
NNuxt
Created by Omnislash on 2/5/2025 in #❓・help
i18n multiple files for each language
The index file need to reexport all files content
9 replies
NNuxt
Created by Omnislash on 2/5/2025 in #❓・help
i18n multiple files for each language
Hello @Omnislash you can test with an index file for each translation folder and import it in the i18n config
9 replies