forked from extern/easydiffusion
work on identical keys
This commit is contained in:
parent
330fa10935
commit
8777e65996
@ -1,10 +1,12 @@
|
||||
{
|
||||
"root": true,
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": ["i18n-json"],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:i18next/recommended"
|
||||
"plugin:i18next/recommended",
|
||||
"plugin:i18n-json/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
@ -12,5 +14,17 @@
|
||||
"prefer-const": "off",
|
||||
"no-debugger": "warn",
|
||||
"i18next/no-literal-string": "warn"
|
||||
// "i18n-json/identical-keys": [
|
||||
// "error",
|
||||
// {
|
||||
// "filePath": {
|
||||
// "home.json/": "./Translation/locales/en/home.json"
|
||||
// }
|
||||
// }
|
||||
// ],
|
||||
// "i18n-json/valid-message-syntax": [
|
||||
// "error",
|
||||
// { "syntax": "non-empty-string" }
|
||||
// ]
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
import i18n from "i18next";
|
||||
import translation from "./en.json";
|
||||
// this should be updated to an interface
|
||||
import translation from "./locales/en/home.json";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
export const resources = {
|
||||
|
38
ui/frontend/build_src/src/Translation/locales/es/home.json
Normal file
38
ui/frontend/build_src/src/Translation/locales/es/home.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"title": "Stable Diffusion UI",
|
||||
"description": "",
|
||||
"navbar": {
|
||||
},
|
||||
"land-cre": {
|
||||
},
|
||||
"land-pre": {
|
||||
},
|
||||
"home": {
|
||||
},
|
||||
"in-paint": {
|
||||
},
|
||||
"settings": {
|
||||
|
||||
},
|
||||
"tags": {
|
||||
|
||||
},
|
||||
"preview-prompt": {
|
||||
|
||||
},
|
||||
"current-task": "",
|
||||
"recent-create": "",
|
||||
"popup": {
|
||||
},
|
||||
"history": {
|
||||
},
|
||||
"advanced-settings": {
|
||||
|
||||
},
|
||||
"storage": {
|
||||
|
||||
},
|
||||
"import": {
|
||||
},
|
||||
"about": ""
|
||||
}
|
Loading…
Reference in New Issue
Block a user