mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-09-20 06:56:05 +08:00
chore: move localesList to generated folder
This commit is contained in:
parent
5b1ad30e98
commit
d826cda2a0
|
@ -9,7 +9,7 @@ import {
|
|||
import ExpandMoreIcon from "@material-ui/icons/ExpandMore";
|
||||
|
||||
import { useTranslation } from "react-i18next";
|
||||
import localesList from "utils/localesList.json";
|
||||
import localesList from "generated/localesList.json";
|
||||
|
||||
function Settings() {
|
||||
const { t, i18n } = useTranslation();
|
||||
|
|
10
frontend/src/generated/localesList.json
Normal file
10
frontend/src/generated/localesList.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
{
|
||||
"code": "en",
|
||||
"name": "English"
|
||||
},
|
||||
{
|
||||
"code": "es-ES",
|
||||
"name": "Español"
|
||||
}
|
||||
]
|
|
@ -37,7 +37,7 @@ export default function GenerateLocalesPlugin() {
|
|||
const outputPath = path.resolve(
|
||||
__dirname,
|
||||
"src",
|
||||
"utils",
|
||||
"generated",
|
||||
"localesList.json"
|
||||
);
|
||||
fs.writeFileSync(outputPath, JSON.stringify(localesList, null, 2));
|
||||
|
|
|
@ -22,6 +22,7 @@ export default defineConfig({
|
|||
components: "/src/components",
|
||||
utils: "/src/utils",
|
||||
external: "/src/external",
|
||||
generated: "/src/generated",
|
||||
},
|
||||
},
|
||||
build: {
|
||||
|
|
Loading…
Reference in a new issue