Skip to content

Commit

Permalink
include flags
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Oct 27, 2023
1 parent 79ca731 commit a57c083
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 6 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import './scripts/ensure-env'

import { fileURLToPath } from 'node:url'
import { env } from 'node:process'

import './scripts/ensure-env'
import { CountryCode } from './src/def/country-code'
import { Lang } from './src/def'

export default defineNuxtConfig({
Expand Down Expand Up @@ -68,7 +70,6 @@ export default defineNuxtConfig({
alias: {
$active: fileURLToPath(new URL(`./src/server/backend/${env.BACKEND}`, import.meta.url)),
$base: fileURLToPath(new URL('./src/server/backend/$base', import.meta.url)),
$articles: fileURLToPath(new URL('./articles', import.meta.url)),
},

typescript: {
Expand All @@ -88,17 +89,17 @@ export default defineNuxtConfig({
locales: [
{
code: Lang.enGB,
flag: 'GB',
flag: CountryCode.UnitedKingdom,
name: 'English (International)',
},
{
code: Lang.frFR,
flag: 'FR',
flag: CountryCode.France,
name: 'French (France)',
},
{
code: Lang.zhCN,
flag: 'CN',
flag: CountryCode.China,
name: '简体中文 (中国)',
},
],
Expand Down
4 changes: 1 addition & 3 deletions src/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"$active": ["backend/[email protected]"],
"$active/*": ["backend/[email protected]/*"],
"$base": ["backend/$base"],
"$base/*": ["backend/$base/*"],
"$articles": ["../../articles"],
"$articles/*": ["../../articles/*"]
"$base/*": ["backend/$base/*"]
}
}
}

0 comments on commit a57c083

Please sign in to comment.