chore: move localesList to generated folder

This commit is contained in:
dec0dOS 2024-05-01 14:11:05 +01:00
parent 5b1ad30e98
commit d826cda2a0
4 changed files with 13 additions and 2 deletions

View file

@ -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();

View file

@ -0,0 +1,10 @@
[
{
"code": "en",
"name": "English"
},
{
"code": "es-ES",
"name": "Español"
}
]

View file

@ -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));

View file

@ -22,6 +22,7 @@ export default defineConfig({
components: "/src/components",
utils: "/src/utils",
external: "/src/external",
generated: "/src/generated",
},
},
build: {