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

Offen
#166 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
android, typescript

Rechercherichtung

Beginne mit dem Lesen der im Issue verlinkten @nativescript/localize-Dokumentation zum Dateiformat und vergleiche das dort dokumentierte Verhalten von Arrays mit dem gezeigten JSON und XML. Bestätige, ob Ressourcen vom Typ string-array und integer-array unterstützt werden; als abgeschlossen gilt die Aufgabe, wenn das Verhalten dokumentiert oder ein klar abgegrenzter Implementierungsplan definiert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
206
Forks
123
Ø Merge
2 T. 1 Std.
Gemergte PRs (30 T.)
1

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NativeScript/plugins

Alle Issues in NativeScript/plugins

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.