[英]How do i add locale.json files in seperate folder in i18next?
這是我的小提琴鏈接: https : //jsfiddle.net/La1c1p7f/1/
與其給變量名"resStore": resources
,不如給en.json和ch.json之類的json文件放在一個單獨的文件夾中。 在angularjs中,我們可以這樣指定文件夾路徑
$translateProvider.useStaticFilesLoader({
prefix: '/ccs/nls/lang_',
suffix: '.json'
})
我該怎么辦? 請幫我做。謝謝。
如果與使用i18next加載json有關,則應查看xhr后端https://github.com/i18next/i18next-xhr-backend
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.