feat: add i18n strings

This commit is contained in:
2023-09-19 05:10:35 +08:00
parent 8df2fd5c14
commit ccc50d720e
7 changed files with 25 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ object LocaleString {
*/
private val resources
get() = baseContext?.resources ?: basePackageParam?.moduleAppResources ?: baseResources
?: error("LocaleString must bind an instance first")
?: error("LocaleString must bind an instance first")
/**
* 绑定并初始化
@@ -562,4 +562,16 @@ object LocaleString {
/** @string Automatic generated */
fun recordCount(vararg objArrs: Any) = R.string.record_count.bind(*objArrs)
/** @string Automatic generated */
val ciNoticeDialogTitle get() = ciNoticeDialogTitle()
/** @string Automatic generated */
fun ciNoticeDialogTitle(vararg objArrs: Any) = R.string.ci_notice_dialog_title.bind(*objArrs)
/** @string Automatic generated */
val ciNoticeDialogContent get() = ciNoticeDialogContent()
/** @string Automatic generated */
fun ciNoticeDialogContent(vararg objArrs: Any) = R.string.ci_notice_dialog_content.bind(*objArrs)
}

View File

@@ -146,4 +146,6 @@
<string name="latest_version_tip">%1$s に投稿\n\n変更ログ\n\n%2$s</string>
<string name="update_now">更新</string>
<string name="record_count">%1$s の合計紀錄</string>
<string name="ci_notice_dialog_title">CI 自動ビルド手順</string>
<string name="ci_notice_dialog_content">コミット ID %1$s の CI 自動ビルドを使用しています。\n\nコードが送信された後、自動的にトリガーされてビルドされ、自動的にコンパイルされてリリースされますが、安定性についてはテストされていません。ご自身の責任で使用してください。</string>
</resources>

View File

@@ -146,4 +146,6 @@
<string name="latest_version_tip">发布于 %1$s\n\n更新日志\n\n%2$s</string>
<string name="update_now">更新</string>
<string name="record_count">共 %1$s 条记录</string>
<string name="ci_notice_dialog_title">CI 自动构建说明</string>
<string name="ci_notice_dialog_content">你正在使用的是 CI 自动构建版本Commit ID 为 %1$s。\n\n它是由代码提交后自动触发并构建、自动编译发布的并未经任何稳定性测试使用风险自负。</string>
</resources>

View File

@@ -146,4 +146,6 @@
<string name="latest_version_tip">發佈於 %1$s\n\n更新日誌\n\n%2$s</string>
<string name="update_now">升級</string>
<string name="record_count">共 %1$s 條紀錄</string>
<string name="ci_notice_dialog_title">CI 自動建置說明</string>
<string name="ci_notice_dialog_content">你正在使用的是 CI 自動建置版本Commit ID 為 %1$s。\n\n它是由程式碼提交後自動觸發並建置、自動編譯發布的並未經任何穩定性測試使用風險自負。</string>
</resources>

View File

@@ -146,4 +146,6 @@
<string name="latest_version_tip">發佈於 %1$s\n\n更新日誌\n\n%2$s</string>
<string name="update_now">升級</string>
<string name="record_count">共 %1$s 條紀錄</string>
<string name="ci_notice_dialog_title">CI 自動建置說明</string>
<string name="ci_notice_dialog_content">你正在使用的是 CI 自動建置版本Commit ID 為 %1$s。\n\n它是由程式碼提交後自動觸發並建置、自動編譯發布的並未經任何穩定性測試使用風險自負。</string>
</resources>

View File

@@ -146,4 +146,6 @@
<string name="latest_version_tip">發佈於 %1$s\n\n更新日誌\n\n%2$s</string>
<string name="update_now">升級</string>
<string name="record_count">共 %1$s 條紀錄</string>
<string name="ci_notice_dialog_title">CI 自動建置說明</string>
<string name="ci_notice_dialog_content">你正在使用的是 CI 自動建置版本Commit ID 為 %1$s。\n\n它是由程式碼提交後自動觸發並建置、自動編譯發布的並未經任何穩定性測試使用風險自負。</string>
</resources>

View File

@@ -147,4 +147,6 @@
<string name="latest_version_tip">Released on %1$s\n\nChangelog\n\n%2$s</string>
<string name="update_now">Update</string>
<string name="record_count">%1$s records found</string>
<string name="ci_notice_dialog_title">CI Auto Build Instruction</string>
<string name="ci_notice_dialog_content">You are using a CI automated build with Commit ID %1$s.\n\nIt is automatically triggered and built after the code is committed, automatically compiled and released, and has not been tested for stability, use it at your own risk.</string>
</resources>