fix: generate-i18n scripti
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
1e212effad
commit
fd361e8886
|
|
@ -1,3 +1,5 @@
|
|||
// This file is auto-generated by scripts/generate-i18n-locale.ts
|
||||
// DONT EDIT THIS FILE MANUALLY
|
||||
export const currentSupportedLanguages = [
|
||||
"en",
|
||||
"ja",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// This file is auto-generated by scripts/generate-i18n-locale.ts
|
||||
// DONT EDIT THIS FILE MANUALLY
|
||||
import en from "../../../../locales/app/en.json"
|
||||
import common_ardz from "../../../../locales/common/ar-DZ.json"
|
||||
import common_ariq from "../../../../locales/common/ar-IQ.json"
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ function updateConstantsFile(sourceFile: ts.SourceFile, locale: string): string
|
|||
(context) => (rootNode) => {
|
||||
function visit(node: ts.Node): ts.Node {
|
||||
if (ts.isVariableDeclaration(node) && ts.isIdentifier(node.name)) {
|
||||
if (node.name.text === "langs") {
|
||||
if (node.name.text === "currentSupportedLanguages") {
|
||||
return updateLangsArray(node, locale)
|
||||
}
|
||||
if (node.name.text === "dayjsLocaleImportMap") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue