Skip to content

Commit d826cda

Browse files
committed
chore: move localesList to generated folder
1 parent 5b1ad30 commit d826cda

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

frontend/src/components/Settings/Settings.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
import ExpandMoreIcon from "@material-ui/icons/ExpandMore";
1010

1111
import { useTranslation } from "react-i18next";
12-
import localesList from "utils/localesList.json";
12+
import localesList from "generated/localesList.json";
1313

1414
function Settings() {
1515
const { t, i18n } = useTranslation();
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"code": "en",
4+
"name": "English"
5+
},
6+
{
7+
"code": "es-ES",
8+
"name": "Español"
9+
}
10+
]

frontend/vite-plugin-generate-locales.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function GenerateLocalesPlugin() {
3737
const outputPath = path.resolve(
3838
__dirname,
3939
"src",
40-
"utils",
40+
"generated",
4141
"localesList.json"
4242
);
4343
fs.writeFileSync(outputPath, JSON.stringify(localesList, null, 2));

frontend/vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default defineConfig({
2222
components: "/src/components",
2323
utils: "/src/utils",
2424
external: "/src/external",
25+
generated: "/src/generated",
2526
},
2627
},
2728
build: {

0 commit comments

Comments
 (0)