yari
yari copied to clipboard
feat(macro): support l10n for NonStandardBadge
Summary
support localization for {{NonStandardBadge}}
macro which is used by {{APIRef}}
, {{Non-standard_Inline}}
, etc.
Problem
This macro should support l10n. But it won't. (the title
is fixed with an en-US
text)
Solution
using mdn.localString
to select a l10n title for this macro.
Screenshots
test on this pr: mdn/translated-content#6699
Before
Non-standard_Inline:
APIRef:
After
Non-standard_Inline:
APIRef:
How did you test this change?
see renderd html.
poke @irvin for a review on l10n-zh
translation