67
edits
(updated Localizing wiki-compat-table.js) |
(Added section for viewing translated content) |
||
Line 2: | Line 2: | ||
The browser compatibility API and the API-back compatibility tables are in alpha testing. | The browser compatibility API and the API-back compatibility tables are in alpha testing. | ||
== Viewing Translated Content == | |||
* If you are in the alpha group, you can see translated Compatibility tables on pages with the <nowiki>{{EmbedCompatTable}}</nowiki> macro on non-English pages. The easiest way to find these is to go to the [https://developer.mozilla.org/en-US/docs/Template:EmbedCompatTable template page], scroll to the bottom, select "Search for [https://developer.mozilla.org/en-US/search?locale=%2A&kumascript_macros=EmbedCompatTable page that use Template:EmbedCompatTable] to see examples...", and look for non-English pages. | |||
* The [https://developer.mozilla.org/en-US/docs/Template:L10n:CompatTable L10n:CompatTable] macro contains the UI strings used by the <nowiki>{{EmbedCompatTable}}</nowiki> macro. | |||
* The importer has a preview of translated content, as seen by the API. Go to [https://browsercompat.herokuapp.com/importer/ the importer], find the page you are interested in (for example [https://browsercompat.herokuapp.com/importer/726 Web/CSS/display], and use the links in the "Languages" section to see the content (partially) translated into that locale. | |||
* When a feature has been committed to the API, you can view the API translated strings, such as [https://browsercompat.herokuapp.com/view_feature/730 Web/CSS/display]. This works identically to the importer's sample views, but works with the committed API data available for MDN pages. | |||
== <nowiki>{{EmbedCompatTable}}</nowiki> KumaScript macro == | == <nowiki>{{EmbedCompatTable}}</nowiki> KumaScript macro == |
edits