NativeScript / NativeScript/plugins

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

Đang mở
#166 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
TypeScript
Star
206
Fork
123
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách đọc tài liệu về định dạng tệp của @nativescript/localize được liên kết trong issue và so sánh hành vi của mảng được tài liệu mô tả với JSON và XML được hiển thị. Xác nhận liệu các tài nguyên string-array và integer-array có được hỗ trợ hay không; công việc được xem là hoàn tất khi hành vi được ghi lại trong tài liệu hoặc một kế hoạch triển khai có phạm vi xác định được đề ra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, typescript
Lĩnh vực
localization, mobile-dev
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.