MDN/Development/CompatibilityTables/Translation: Difference between revisions

Jump to navigation Jump to search
Add server-side template method for viewing committed API data
(Add forward-looking statements about the translation process)
(Add server-side template method for viewing committed API data)
Line 19: Line 19:
* 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 [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.
* 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.
* 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 .  This is driven by JavaScript, works identically to the importer's sample views, but works with the committed API data available for MDN pages.
 
* Another view of committed API data is at https://browsercompat.herokuapp.com/api/v1/view_features/730.html . This is driven by server-side templates, using a query-string parameter (such as [https://browsercompat.herokuapp.com/api/v1/view_features/730?format=html&lang=fr lang=fr]) to do server-side translation from API data.
== This is not the final version ==
 


== <nowiki>{{EmbedCompatTable}}</nowiki> KumaScript macro ==
== <nowiki>{{EmbedCompatTable}}</nowiki> KumaScript macro ==
67

edits

Navigation menu