generated from halo-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加界面的 i18n 支持。 /kind feature Fixes #167 ```release-note 添加界面的 i18n 支持。 ```
- Loading branch information
Showing
24 changed files
with
746 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,6 @@ build { | |
} | ||
|
||
halo { | ||
version = "2.18.0" | ||
version = "2.20" | ||
debug = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/lit/lit/main/packages/localize-tools/config.schema.json", | ||
"sourceLocale": "en", | ||
"targetLocales": [ | ||
"es", | ||
"zh-CN", | ||
"zh-TW" | ||
], | ||
"tsConfig": "./tsconfig.json", | ||
"output": { | ||
"mode": "runtime", | ||
"outputDir": "./src/generated/locales", | ||
"localeCodesModule": "./src/generated/locale-codes.ts" | ||
}, | ||
"interchange": { | ||
"format": "xliff", | ||
"xliffDir": "./xliff/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Do not modify this file by hand! | ||
// Re-generate this file by running lit-localize. | ||
|
||
/** | ||
* The locale code that templates in this source code are written in. | ||
*/ | ||
export const sourceLocale = `en`; | ||
|
||
/** | ||
* The other locale codes that this application is localized into. Sorted | ||
* lexicographically. | ||
*/ | ||
export const targetLocales = [ | ||
`es`, | ||
`zh-CN`, | ||
`zh-TW`, | ||
] as const; | ||
|
||
/** | ||
* All valid project locale codes. Sorted lexicographically. | ||
*/ | ||
export const allLocales = [ | ||
`en`, | ||
`es`, | ||
`zh-CN`, | ||
`zh-TW`, | ||
] as const; |
Oops, something went wrong.