NativeScript / NativeScript/plugins
@nativescript/localize, Android bug, Cannot add language file with region specifier
還沒有人認領這個 Issue。
- 主要語言
- TypeScript
- 星號
- 206
- 分支
- 123
- 平均合併
- 2 天 1 小時
- 30 天內合併 PR
- 1
描述
Hello together, I am currently trying to add simple Chinese (zh.json) and traditional Chinese (zh-hant.json) language files to my app using the localize plugin.
Both files work as expected when building the ios app. However, with the zh-hant.json file included in the sources I cannot build the android version of my app. I get the following error message:
ERROR:/Users/cjohn/Entwicklung/MND/my-nutri-diary/mnd/platforms/android/app/src/main/res/values-zh-rhant: Resource and asset merger: Invalid resource directory name
Execution failed for task ':app:mergeDebugResources'.
/Users/cjohn/Entwicklung/MND/my-nutri-diary/mnd/platforms/android/app/src/main/res/values-zh-rhant: Error: Invalid resource directory name
Would be great if someone could help. Thanks!
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先追蹤 @nativescript/localize 如何將語言檔案名稱轉換為 Android 資源目錄,並使用 zh.json 和 zh-hant.json 作為重現案例。執行 Android 建置,並確認為區域語言產生的目錄使用有效的 Android 資源名稱,且建置成功。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, typescript
- 領域
- build-system, localization, mobile-dev
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100