-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
add995e
commit 0868c40
Showing
11 changed files
with
135 additions
and
14 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 |
---|---|---|
|
@@ -56,6 +56,7 @@ APK 文件。 | |
- [ ] 优化签名配置 | ||
- [ ] 美化主题 | ||
- [ ] 添加查看日志功能 | ||
- [ ] 支持国际化语言 🚧进行中 | ||
|
||
## 界面预览 | ||
|
||
|
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,13 @@ | ||
package io.github.jixiaoyong.i18n | ||
|
||
/** | ||
* @author : jixiaoyong | ||
* @description :TODO | ||
* | ||
* @email : jixiaoyong1995@gmail.com | ||
* @date : 30/3/2024 | ||
*/ | ||
object Locales { | ||
const val EN = "en" | ||
const val ZH = "zh" | ||
} |
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,46 @@ | ||
package io.github.jixiaoyong.i18n | ||
|
||
import cafe.adriel.lyricist.LyricistStrings | ||
|
||
/** | ||
* @author : jixiaoyong | ||
* @description :英文翻译 | ||
* | ||
* @email : jixiaoyong1995@gmail.com | ||
* @date : 30/3/2024 | ||
*/ | ||
@LyricistStrings(languageTag = Locales.EN) | ||
internal val EnStrings = Strings( | ||
loading = "Loading...", | ||
alreadyRunning = "Apk Signer has been started, please do not start it again.", | ||
exit = "Quit", | ||
retry = "Retry", | ||
signConfig = "Signature information", | ||
signApp = "Signature APP", | ||
settingsConfig = "Settings Config" | ||
) | ||
|
||
//internal val EnStrings = Strings( | ||
// simple = "Hello Compose!", | ||
// | ||
// annotated = buildAnnotatedString { | ||
// withStyle(SpanStyle(color = Color.Red)) { append("Hello ") } | ||
// withStyle(SpanStyle(fontWeight = FontWeight.Light)) { append("Compose!") } | ||
// }, | ||
// | ||
// parameter = { locale -> | ||
// "Current locale: $locale" | ||
// }, | ||
// | ||
// plural = { count -> | ||
// val value = when (count) { | ||
// 0 -> "no" | ||
// 1, 2 -> "a few" | ||
// in 3..10 -> "a bunch of" | ||
// else -> "a lot of" | ||
// } | ||
// "I have $value apples" | ||
// }, | ||
// | ||
// list = listOf("Avocado", "Pineapple", "Plum") | ||
//) |
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,21 @@ | ||
package io.github.jixiaoyong.i18n | ||
|
||
import cafe.adriel.lyricist.LyricistStrings | ||
|
||
/** | ||
* @author : jixiaoyong | ||
* @description :中文翻译 | ||
* | ||
* @email : jixiaoyong1995@gmail.com | ||
* @date : 30/3/2024 | ||
*/ | ||
@LyricistStrings(languageTag = Locales.ZH, default = true) | ||
internal val ZhStrings = Strings( | ||
loading = "加载中……", | ||
alreadyRunning = "ApkSigner已经启动了,请不要重复启动", | ||
exit = "退出", | ||
retry = "重试", | ||
signConfig = "签名信息", | ||
signApp = "签名APP", | ||
settingsConfig = "设置信息" | ||
) |
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,18 @@ | ||
package io.github.jixiaoyong.i18n | ||
|
||
/** | ||
* @author : jixiaoyong | ||
* @description :APP 用到的所有字符抽象类 | ||
* | ||
* @email : jixiaoyong1995@gmail.com | ||
* @date : 30/3/2024 | ||
*/ | ||
data class Strings( | ||
val loading: String, | ||
val alreadyRunning: String, | ||
val exit: String, | ||
val retry: String, | ||
val signConfig: String, | ||
val signApp: String, | ||
val settingsConfig: String, | ||
) |
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