Re: [w3c/manifest] [DRAFT—DO NOT MERGE/REVIEW] Add members for localization (PR #1101)

hello, everyone

I would suggest that localization be a native feature for all strings. 

Hence we don't need extra fields for localization.

just to enhance the parser to parse new strings.

My suggestion is that strings can divided into two types: 

1. the normal primitive strings defined by different charsets
```
 "Hello world!"
or
"你好世界!“
```
2. the enhanced strings which include i18n features and be in json format, like this:
```
```json
```
lang: "en",   // fallback language if browser meets no locale strings listed
"name":  {
  "en":  "Web App",    // fallback for all en-* browsers or for general  en-* users
  "en-US":  "Web App",   // specific string for localized en
  "zh": "网站应用”, // fallback for all zh-* browsers  or for general  zh-* users
  "zh-CN": "网站应用”, // specific string for localized zh
  ...
}
```







-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/1101#issuecomment-2188649766
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/manifest/pull/1101/c2188649766@github.com>

Received on Tuesday, 25 June 2024 11:10:44 UTC