Compose Multiplatform 資源

在 5.12 版被加入.

Android 字串資源 的變體,逸出規則不同。

支援的功能

副檔名

.xml

語言能力 ⓘ

單語言

支援複數 ⓘ

Yes

支援描述 ⓘ

Yes

支援解釋 ⓘ

No

支援情境 ⓘ

No

支援位置 ⓘ

No

支援旗標 ⓘ

Yes

API 辨識碼

cmp-resource

支援唯讀字串 ⓘ

Yes

支援移除已不再使用的字串 ⓘ

No

檢查此格式新增的標記 ⓘ

Java 格式

Weblate 設定

典型的 Weblate 組件設定

檔案遮罩

commonMain/composeResources/values-*/strings.xml

單語言基底語言檔案

commonMain/composeResources/values/strings.xml

新翻譯的範本

空白

檔案格式

Compose Multiplatform 資源