feat(localization): Add en/vi language

This commit is contained in:
Tran Anh Tuan
2025-11-20 16:21:17 +07:00
parent dea435a4ec
commit 216e865ca5
37 changed files with 2356 additions and 455 deletions

View File

@@ -12,8 +12,15 @@ export default defineConfig({
request: {},
locale: {
default: 'vi-VN',
// baseNavigator: false,
// antd: true,
baseNavigator: false,
antd: true,
title: false,
baseSeparator: '-',
// support for Vietnamese and English
locales: [
['vi-VN', 'Tiếng Việt'],
['en-US', 'English'],
],
},
favicons: ['/logo.png'],
layout: {
@@ -22,7 +29,7 @@ export default defineConfig({
proxy: proxy[REACT_APP_ENV],
routes: [
{
name: 'Login',
title: 'Login',
path: '/login',
component: './Auth',
layout: false,
@@ -32,13 +39,13 @@ export default defineConfig({
redirect: '/map',
},
{
name: 'Giám sát',
name: 'monitoring',
path: '/map',
component: './Home',
icon: 'icon-Map',
},
{
name: 'Chuyến đi',
name: 'trips',
path: '/trip',
component: './Trip',
icon: 'icon-specification',
@@ -46,5 +53,5 @@ export default defineConfig({
],
npmClient: 'pnpm',
tailwindcss: {},
tailwindcss: {}, // Temporarily disabled
});