NativeScript / NativeScript/plugins

nativescript/localize info about string-arrays & integer-arrays

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

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

主要言語
TypeScript
スター
206
フォーク
123
平均マージ
2日 1時間
マージ済み PR(30日)
1

説明

Hi,

Hope you're well!

I've some issue or misunderstandings regards to @nativescript/localize package, in terms of arrays. Does arrays are transformed into with each item in array as ?

The arrays are mentioned in https://github.com/NativeScript/plugins/tree/main/packages/localize#file-format

If yes,
I've tried doing so, but it doesn't work, below I tried the following

Json file

{
  "array": [
    "split the translation into ",
    "multiples lines"
  ]
}

XML output

<string name="array">"split the translation into multiples lines"</string>

If no

Are there any ways of doing so, or will there be plans for it? Below have an example of what I'm trying to achieve.

string-arrays

<string-array name="some_name">
    <item>One</item>
    <item>Two...</item>
</string-array>

integer-array

<integer-array name="some_name">
    <item>2</item>
</integer-array>

Hoping that there is such feature as it would be very helpful, looking forward to hearing from you.

Best regards,
Cheers

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

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

はじめの一歩

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

調査の方向性

まず、issue にリンクされている @nativescript/localize のファイル形式に関するドキュメントを読み、そこに記載されている配列の動作を、示されている JSON および XML と比較します。string-array と integer-array のリソースがサポートされているか確認します。動作をドキュメント化するか、範囲を限定した実装計画を定義すれば完了です。

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

評価

技術スタック
android, typescript
領域
localization, mobile-dev
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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