yari icon indicating copy to clipboard operation
yari copied to clipboard

Update localized links in SeeCompatTable.ejs for `ja`

Open mfuji09 opened this issue 2 years ago • 2 comments

Summary

Update localized links in SeeCompatTable.ejs for ja Related: #3882 (but for ja locale)

Problem

The URL fragments in the macro haven't been localized yet.

Solution

Update the URLs in the macro. And update URL for "Experimental" (which has been moved).


Screenshots

Before

After


How did you test this change?

mfuji09 avatar Aug 11 '22 10:08 mfuji09

@mfuji09 I looked at https://developer.mozilla.org/ja/docs/Web/HTTP/Status/425 and the link to the compat table works already, so this PR would break it. Is this an inconsistency between html and markdown pages?

fiji-flo avatar Aug 11 '22 16:08 fiji-flo

@fiji-flo Yes. BCD tables in HTML pages have #browser_compatibility, however markdown pages have localized id, #ブラウザーの互換性. An example of markdown page is: https://developer.mozilla.org/ja/docs/Web/API/Element From now on, HTML pages will be translated into markdown, so I think macros should be changed.

mfuji09 avatar Aug 13 '22 04:08 mfuji09

@mfuji09 Currently, ja still has more index.htmls than index.mds. Have you considered opening a translated-content PR to update all #browser_compatibility links/anchors to #ブラウザーの互換性 in files/ja/**/index.html, to improve the user experience until all files are migrated?

caugner avatar Aug 18 '22 13:08 caugner

@caugner We (the ja locale team) have started to convert the rest html files to markdown using conversion script. (See https://github.com/mdn/translated-content/issues/7782 )

Therefore, #browser_compatibility anchors will be replaced with localized one, and the current link won't be work soon.

mfuji09 avatar Aug 18 '22 14:08 mfuji09