NativeScript / NativeScript/plugins

@nativescript/localize, Android bug, Cannot add language file with region specifier

オープン
#246 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
206
フォーク
123
平均マージ
2日 1時間
マージ済み PR(30日)
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!

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、zh.json と zh-hant.json を再現ケースとして使用し、@nativescript/localize が言語ファイル名を Android リソースディレクトリに変換する方法を追跡します。Android ビルドを実行し、地域言語用に生成されたディレクトリが有効な Android リソース名を使用していることと、ビルドが成功することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, typescript
領域
build-system, localization, mobile-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。