yari icon indicating copy to clipboard operation
yari copied to clipboard

feat(macro): support l10n for NonStandardBadge

Open yin1999 opened this issue 2 years ago • 1 comments

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:

image

APIRef:

image

After

Non-standard_Inline:

image

APIRef:

image

How did you test this change?

see renderd html.

yin1999 avatar Jul 06 '22 00:07 yin1999

poke @irvin for a review on l10n-zh translation

yin1999 avatar Jul 06 '22 00:07 yin1999