Skip to content

Commit

Permalink
Install a translation pack
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel authored Apr 16, 2024
1 parent 867ff8b commit fa77c48
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions blueprints/translations/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"meta": {
"title": "Install WordPress language packs",
"author": "adamziel",
"description": "Installs and activates the latest WordPress Japanese translation pack from https://translate.wordpress.org/.",
"categories": ["core"]
},
"landingPage":"/wp-admin/?welcome=0",
"login": true,
"steps":[
{
"step":"mkdir",
"path":"/wordpress/wp-content/languages/plugins"
},
{
"step":"mkdir",
"path":"/wordpress/wp-content/languages/themes"
},
{
"step":"writeFile",
"path":"/wordpress/wp-content/languages/admin-ja_JA.mo",
"data":{
"resource":"url",
"caption":"Downloading admin-ja_JA.mo",
"url":"https://translate.wordpress.org/projects/wp/dev/admin/ja/default/export-translations?format=mo"
}
},
{
"step":"setSiteOptions",
"options":{
"WPLANG":"ja_JA"
}
}
]
}

0 comments on commit fa77c48

Please sign in to comment.