Skip to content

Commit

Permalink
Docs: translation i18n messages - JSON files (#1807)
Browse files Browse the repository at this point in the history
## Motivation for the change, related issues

With the merge of
#1766 translations
are enabled for Playground Docs. Files can be translated but also web
parts.
This PR incorporates JSON files with messages to translate for each
language.

This files have been generated by running from from
`packages/docs/site`:

```
npm run write-translations -- --locale fr
npm run write-translations -- --locale es
```

These files still need to be translated. This PR just adds them for the
sake of simplifying the work of contributors translating Playground Docs
for a specific language.
  • Loading branch information
juanmaguitar authored Sep 26, 2024
1 parent f35c60c commit 70c9f3c
Show file tree
Hide file tree
Showing 9 changed files with 704 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"title": {
"message": "Blog",
"description": "The title for the blog used in SEO"
},
"description": {
"message": "Blog",
"description": "The description for the blog used in SEO"
},
"sidebar.title": {
"message": "Recent posts",
"description": "The label for the left sidebar"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version.label": {
"message": "Next",
"description": "The label for version current"
},
"sidebar.mainSidebar.category.Documentation": {
"message": "Documentation",
"description": "The label for category Documentation in sidebar mainSidebar"
},
"sidebar.mainSidebar.category.About Playground": {
"message": "About Playground",
"description": "The label for category About Playground in sidebar mainSidebar"
},
"sidebar.mainSidebar.category.Guides": {
"message": "Guides",
"description": "The label for category Guides in sidebar mainSidebar"
},
"sidebar.mainSidebar.category.Contributing": {
"message": "Contributing",
"description": "The label for category Contributing in sidebar mainSidebar"
},
"sidebar.blueprintsSidebar.category.Blueprints": {
"message": "Blueprints",
"description": "The label for category Blueprints in sidebar blueprintsSidebar"
},
"sidebar.blueprintsSidebar.category.Tutorial": {
"message": "Tutorial",
"description": "The label for category Tutorial in sidebar blueprintsSidebar"
},
"sidebar.blueprintsSidebar.category.Steps": {
"message": "Steps",
"description": "The label for category Steps in sidebar blueprintsSidebar"
},
"sidebar.developersSidebar.category.Developers": {
"message": "Developers",
"description": "The label for category Developers in sidebar developersSidebar"
},
"sidebar.developersSidebar.category.Local Development": {
"message": "Local Development",
"description": "The label for category Local Development in sidebar developersSidebar"
},
"sidebar.developersSidebar.category.Playground APIs": {
"message": "Playground APIs",
"description": "The label for category Playground APIs in sidebar developersSidebar"
},
"sidebar.developersSidebar.category.Javascript API": {
"message": "Javascript API",
"description": "The label for category Javascript API in sidebar developersSidebar"
},
"sidebar.developersSidebar.category.Architecture": {
"message": "Architecture",
"description": "The label for category Architecture in sidebar developersSidebar"
}
}
42 changes: 42 additions & 0 deletions packages/docs/site/i18n/es/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"link.title.Docs": {
"message": "Docs",
"description": "The title of the footer links column with title=Docs in the footer"
},
"link.title.Community": {
"message": "Community",
"description": "The title of the footer links column with title=Community in the footer"
},
"link.item.label.Documentation": {
"message": "Documentation",
"description": "The label of footer link with label=Documentation linking to /"
},
"link.item.label.Blueprints": {
"message": "Blueprints",
"description": "The label of footer link with label=Blueprints linking to /blueprints"
},
"link.item.label.Developers": {
"message": "Developers",
"description": "The label of footer link with label=Developers linking to /developers"
},
"link.item.label.API Reference": {
"message": "API Reference",
"description": "The label of footer link with label=API Reference linking to /api"
},
"link.item.label.GitHub": {
"message": "GitHub",
"description": "The label of footer link with label=GitHub linking to https://github.com/WordPress/wordpress-playground"
},
"link.item.label.#meta-playground on Slack": {
"message": "#meta-playground on Slack",
"description": "The label of footer link with label=#meta-playground on Slack linking to https://make.wordpress.org/chat"
},
"copyright": {
"message": "Copyright © 2024 WordPress Playground, Inc. Built with Docusaurus.",
"description": "The footer copyright"
},
"logo.alt": {
"message": "Code Is Poetry",
"description": "The alt text of footer logo"
}
}
26 changes: 26 additions & 0 deletions packages/docs/site/i18n/es/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": {
"message": "WordPress Playground",
"description": "The title in the navbar"
},
"logo.alt": {
"message": "WordPress Playground",
"description": "The alt text of navbar logo"
},
"item.label.Documentation": {
"message": "Documentation",
"description": "Navbar item with label Documentation"
},
"item.label.Blueprints": {
"message": "Blueprints",
"description": "Navbar item with label Blueprints"
},
"item.label.Developers": {
"message": "Developers",
"description": "Navbar item with label Developers"
},
"item.label.API Reference": {
"message": "API Reference",
"description": "Navbar item with label API Reference"
}
}
Loading

0 comments on commit 70c9f3c

Please sign in to comment.