-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
April snapshot of Mobile roadmap #213
Comments
Yes, I do not exactly know what triggers the difference (my understanding is that |
Note I unchecked "Make sure that the Chinese version is up-to-date" because the About page I just prepared will have to be translated once merged. I also added the Chrome Platform Status data bug to the list of issues to solve before publishing a snapshot. Never good to publish data we know may be incorrect... |
I have updated the Chinese version to match the latest English version. One remaining issue is the localization of the date: 01d81e5#diff-2b0256e7169e074ea636d8ad1f0ddbf2R786 It should use |
That's a good point. I used Now, trouble is it only seems to work in a "real" browser. JSDOM, used to generate the pages in batch, does not support That said, am I right to think that the correct way to represent "April 2018" in Chinese would be "2018年4月"? Or would you expect something else? If that's the right output, I'll hardcode the rule for Chinese. |
Last modified dates and publication dates were always formatted in English. They should now be formatted according to the language of the page. Under the hoods, the `toLocaleDateString` method gets used to format the date. Note browsers may only support a subset of locale settings in practice (and may for instance only support locale settings that are actually local to the user), so that mechanism may not always work. In particular, JSDOM, used to generate all roadmap pages in batch, does not seem to support Chinese, so rules for Chinese are hardcoded if JSDOM is detected. This commit is a fix for: w3c#213 (comment)
Right, "2018年4月" is "April 2018" in Chinese. Besides hardcoding the rule, another option might be using the |
Last modified dates and publication dates were always formatted in English. They should now be formatted according to the language of the page. Under the hoods, the `toLocaleDateString` method gets used to format the date. Note browsers may only support a subset of locale settings in practice (and may for instance only support locale settings that are actually local to the user), so that mechanism may not always work. In particular, JSDOM, used to generate all roadmap pages in batch, does not seem to support Chinese, so rules for Chinese are hardcoded if JSDOM is detected. This commit is a fix for: #213 (comment)
Although not really advertized yet, the April 2018 version of the mobile roadmap has been released. Closing this meta-issue accordingly. |
Goal is to publish a new snapshot of the Mobile roadmap by 25 April 2018. Some things that need to be done:
The text was updated successfully, but these errors were encountered: