Skip to content

Commit b943643

Browse files
committed
chore: update logic
1 parent 02e8540 commit b943643

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

config/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function buildLocales() {
291291
name: l.name,
292292
files: [data.file as string, `${l.code}.json`],
293293
}
294-
lunariaJSONFiles[data.code] = l.country ? (data.file as string) : `${l.code}.json`
294+
lunariaJSONFiles[l.code] = l.country ? (data.file as string) : `${l.code}.json`
295295
delete entry.file
296296
acc.push(entry)
297297
})

i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
"size": "Size",
330330
"deps": "Deps",
331331
"updated": "Updated",
332-
"install": "Install",
332+
"get_started": "Get started",
333333
"readme": "Readme",
334334
"maintainers": "Maintainers",
335335
"keywords": "Keywords",

lunaria/files/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
"size": "Size",
330330
"deps": "Deps",
331331
"updated": "Updated",
332-
"install": "Install",
332+
"get_started": "Get started",
333333
"readme": "Readme",
334334
"maintainers": "Maintainers",
335335
"keywords": "Keywords",

lunaria/lunaria.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const jsonStatus: I18nStatus = {
6262

6363
const completedKeys = totalKeys - missingKeys.length
6464
const localeFilePath = `i18n/locales/${lunariaJSONFiles[locale.lang]!}.json`
65-
console.log(localeFilePath)
6665

6766
return {
6867
lang: locale.lang,

0 commit comments

Comments
 (0)