-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Replace old-style compatibility/specification tables with new macro #5618
Comments
For replacing the specifications tables, I've using And please check the modifications made by this script, because of the usage of |
Hi @queengooborg, I found that yari will merge metadata from en-US when render a macro in l10n documents, so whether it's ok to remove |
Great catch, thanks for the info @yin1999! Since the en-US metadata is merged, then we can omit the frontmatter key -- I've updated the instructions accordingly! |
@queengooborg Hello!
I have a question for confirmation. Is it ok to change everything to {{Compat}} as shown below?
|
ko-locale
|
This is ok, I've used this in l10n-zh. |
@yin1999 , Thank you for the reply 🙇🙇 |
done for l10n-zh |
just in case someone needs a regex or two:
|
* chore: remove instances of CompatChrome This removes instances of `CompatChrome` from the content. It also updates some sections to be closer to mdn/content. Your feedback is appreciated. Part of #5618 * Apply `es` suggestions from code review * Apply suggestions from code review Co-authored-by: Alexander <alexander_belial999@hotmail.com> Co-authored-by: Masahiro FUJIMOTO <mfujimot@gmail.com>
I wrote a script to migrate Specifications. Already applied to ja. |
Done for l10n-ko. Have a nice day :) |
Done for |
Closing in favor of the new tracking issue at #11594. |
In mid-2019, we have migrated all of the compatibility table information over to the BCD project. Recently, we have also transitioned to using BCD to generate the specifications table.
When I went and marked the old
{{CompatXXX}}
macros as deprecated in Yari, I happened to notice that there are a LOT of translations that are still using the old-style compatibility tables, which means readers may be getting outdated compatibility information. We should go through and replace all of these tables with ones generated by the new{{Compat}}
macro. While we're at it, we should also replace the specifications tables with the{{Specifications}}
macro as well.Steps to fix pages:
,CompatAndroid
,CompatChrome
,CompatGeckoDesktop
,CompatGeckoMobile
,CompatibilityTable
,CompatIE
,CompatNo
,CompatOpera
,CompatOperaMobile
,CompatSafari
,CompatUnknown
,CompatVersionUnknown
spec
,spec2
,SpecName
{{Specifications}}
{{Compat}}
P.S. BCD has an open issue regarding how to handle localization for notes. We're open to suggestions, see mdn/browser-compat-data#114 for more!
The text was updated successfully, but these errors were encountered: