Skip to content

Commit 72b500b

Browse files
committed
refactor(i18n): convert file format from JS to TS
1 parent 4fcc50c commit 72b500b

26 files changed

+2
-2
lines changed

src/i18n.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ const lang: { [key: string]: any } = {
2727
}
2828

2929
// Dynamically import all translation files
30-
const modules = import.meta.glob('./i18n/*.js')
30+
const modules = import.meta.glob('./i18n/*.ts')
3131

3232
// Process each module
3333
Object.keys(modules).forEach((path) => {
34-
const partKey = path.match(/\/(\w+)\.js$/)?.[1] // retrieve the filename as partial keys
34+
const partKey = path.match(/\/(\w+)\.ts$/)?.[1] // retrieve the filename as partial keys
3535
if (partKey) {
3636
modules[path]().then((mod) => {
3737
const tran = mod.default
File renamed without changes.

src/i18n/Auth.js src/i18n/Auth.ts

File renamed without changes.
File renamed without changes.

src/i18n/Base.js src/i18n/Base.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/i18n/Rule.js src/i18n/Rule.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/i18n/Subs.js src/i18n/Subs.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)