mdn / translated-content

The source repository of all translated content for MDN Web Docs
https://developer.mozilla.org/en-US/docs/MDN/Community/Contributing/Translated_content
Other
1.65k stars 8k forks source link

update all macros' translations for zh-CN at yari #13881

Open awxiaoxian2020 opened 1 year ago

awxiaoxian2020 commented 1 year ago

When I read the MDN docs, I found the macro hasn't been translated yet. image So I think we can have an issue to deal with all macros' problems.

### Localizable Macros in zh-CN
- [x] [AddonSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/AddonSidebar.ejs) mdn/yari#11231
- [x] [AddonSidebarMain](https://github.com/mdn/yari/blob/main/kumascript/macros/AddonSidebarMain.ejs) mdn/yari#11231
- [x] [AvailableInWorkers](https://github.com/mdn/yari/blob/main/kumascript/macros/AvailableInWorkers.ejs)
- [x] [CSSRef](https://github.com/mdn/yari/blob/main/kumascript/macros/CSSRef.ejs)
- [x] [Deprecated_Header](https://github.com/mdn/yari/blob/main/kumascript/macros/Deprecated_Header.ejs)
- [x] [Deprecated_Inline](https://github.com/mdn/yari/blob/main/kumascript/macros/Deprecated_Inline.ejs)
- [x] [EmbedInteractiveExample](https://github.com/mdn/yari/blob/main/kumascript/macros/EmbedInteractiveExample.ejs)
- [x] [ExperimentalBadge](https://github.com/mdn/yari/blob/main/kumascript/macros/ExperimentalBadge.ejs)
- [x] [FirefoxSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/FirefoxSidebar.ejs)
- [x] [Firefox_for_developers](https://github.com/mdn/yari/blob/main/kumascript/macros/Firefox_for_developers.ejs) mdn/yari#10034
- [x] [GamesSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/GamesSidebar.ejs) https://github.com/mdn/yari/pull/10231
- [x] [HTMLSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/HTMLSidebar.ejs)
- [x] [HTTPSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/HTTPSidebar.ejs)
- [x] [JsSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/JsSidebar.ejs)
- [x] [LearnSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/LearnSidebar.ejs)
- [x] [ListSubpagesForSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/ListSubpagesForSidebar.ejs)
- [x] [MDNSidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/MDNSidebar.ejs)
- [x] [MathMLRef](https://github.com/mdn/yari/blob/main/kumascript/macros/MathMLRef.ejs)
- [ ] [Non-standard_Header](https://github.com/mdn/yari/blob/main/kumascript/macros/Non-standard_Header.ejs) mdn/yari#11163
- [x] [NonStandardBadge](https://github.com/mdn/yari/blob/main/kumascript/macros/NonStandardBadge.ejs)
- [x] [PreviousMenuNext](https://github.com/mdn/yari/blob/main/kumascript/macros/PreviousMenuNext.ejs) mdn/yari#10603
- [x] [PreviousNext](https://github.com/mdn/yari/blob/main/kumascript/macros/PreviousNext.ejs)
- [x] [ReadOnlyInline](https://github.com/mdn/yari/blob/main/kumascript/macros/ReadOnlyInline.ejs)
- [x] [SVGRef](https://github.com/mdn/yari/blob/main/kumascript/macros/SVGRef.ejs) mdn/yari#10069
- [x] [SeeCompatTable](https://github.com/mdn/yari/blob/main/kumascript/macros/SeeCompatTable.ejs)
- [x] [WebAssemblySidebar](https://github.com/mdn/yari/blob/main/kumascript/macros/WebAssemblySidebar.ejs)
- [x] [XsltRef](https://github.com/mdn/yari/blob/main/kumascript/macros/XsltRef.ejs) mdn/yari#11295
- [x] [js_property_attributes](https://github.com/mdn/yari/blob/main/kumascript/macros/js_property_attributes.ejs)
- [x] [no_tag_omission](https://github.com/mdn/yari/blob/main/kumascript/macros/no_tag_omission.ejs)
- [x] [optional_inline](https://github.com/mdn/yari/blob/main/kumascript/macros/optional_inline.ejs)
- [x] [secureContext_header](https://github.com/mdn/yari/blob/main/kumascript/macros/secureContext_header.ejs)
- [x] [secureContext_inline](https://github.com/mdn/yari/blob/main/kumascript/macros/secureContext_inline.ejs)
- [x] [unimplementedGeneric](https://github.com/mdn/yari/blob/main/kumascript/macros/unimplementedGeneric.ejs)
- [x] [xref_csscomputed](https://github.com/mdn/yari/blob/main/kumascript/macros/xref_csscomputed.ejs)
- [x] [xref_cssinherited](https://github.com/mdn/yari/blob/main/kumascript/macros/xref_cssinherited.ejs)
- [x] [xref_cssinitial](https://github.com/mdn/yari/blob/main/kumascript/macros/xref_cssinitial.ejs)
- [x] [CSSSyntax](https://github.com/mdn/yari/blob/main/kumascript/src/lib/css-syntax.ts) mdn/yari#10275
- [x] A11yRef (pendding: mdn/yari#10659)
- [x] [WebExtExamples](https://github.com/mdn/yari/blob/main/kumascript/macros/WebExtExamples.ejs) https://github.com/mdn/yari/pull/11377
- [ ] [WebExtAllExamples](https://github.com/mdn/yari/blob/main/kumascript/macros/WebExtAllExamples.ejs)
jasonren0403 commented 1 year ago

I've found this in Yari repository

https://github.com/mdn/yari/blob/main/kumascript/macros/PreviousMenuNext.ejs#L31-L36

Here, we may put the localization in s_Menu šŸ¤”

awxiaoxian2020 commented 1 year ago

I've found this in Yari repository

https://github.com/mdn/yari/blob/main/kumascript/macros/PreviousMenuNext.ejs#L31-L36

Here, we may put the localization in s_Menu šŸ¤”

My proposal is updating all macros files šŸ‘

awxiaoxian2020 commented 1 year ago

@jasonren0403 or @yin1999 Could you please add the "l10n-zh" label for this issue?

jasonren0403 commented 1 year ago

I've done some research and updated a task list at main thread šŸ¤”

yin1999 commented 1 year ago

Removed bug macro in favor of deprecation.

yin1999 commented 12 months ago

I've removed xref_cssvisual macro as it's deprecated in mdn/yari#9156.

jasonren0403 commented 4 months ago

Removed {{DOMAttributeMethods}} as it's going to be deprecated