Skip to content

Commit

Permalink
L10n packaging (scratchfoundation#1)
Browse files Browse the repository at this point in the history
* Initial version of scratch-l10n package
  • Loading branch information
chrisgarrity authored Sep 21, 2017
1 parent 41f31d4 commit 4a9cdc7
Show file tree
Hide file tree
Showing 15 changed files with 622 additions and 26 deletions.
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"plugins": [
"transform-object-rest-spread"
],
"presets": ["es2015"]
}

3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
locales/*
dist/
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ['scratch', 'scratch/node'],
"plugins": [
"json"
]
};
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Mac OS
.DS_Store

# NPM
/node_modules
npm-*

# generated locale files
/locales

# generated build files
/dist
94 changes: 94 additions & 0 deletions gui/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"action.addSound": {
"message": "أَضِف صَوْت",
"description": "Button to add a sound in the editor tab"
},
"targetPane.addBackdrop": {
"message": "أَضِف خَلْفِيَّة",
"description": "Button to add a backdrop in the target pane"
},
"action.addCostume": {
"message": "أَضِف تَخْصِيص",
"description": "Button to add a costume in the editor tab"
},
"soundEditor.redo": {
"message": "إعادة",
"description": "Title of the button to redo"
},
"soundEditor.play": {
"message": "تَشغيل",
"description": "Title of the button to start playing the sound"
},
"soundEditor.sound": {
"message": "صَوْت",
"description": "Lable for the name of the sound"
},
"soundEditor.save": {
"message": "حِفظ",
"description": "Title of the button to save trimmed sound"
},
"action.addBackdrop": {
"message": "أَضِف خَلْفِيَّة",
"description": "Button to add a backdrop in the editor tab"
},
"controls.turboMode": {
"message": "وَضْعِيَةْ التَرْبُو",
"description": "Label indicating turbo mode is active"
},
"soundEditor.robot": {
"message": "روبوت",
"description": "Title of the button to apply the robot effect"
},
"soundEditor.slower": {
"message": "أَبطأ",
"description": "Title of the button to apply the slower effect"
},
"soundEditor.trim": {
"message": "قَصْ",
"description": "Title of the button to start trimminging the sound"
},
"soundEditor.faster": {
"message": "أَسرع",
"description": "Title of the button to apply the faster effect"
},
"soundEditor.echo": {
"message": "صَدى",
"description": "Title of the button to apply the echo effect"
},
"soundEditor.reverse": {
"message": "مُتعاكس",
"description": "Title of the button to apply the reverse effect"
},
"action.recordSound": {
"message": "سَجِّل صَوْت",
"description": "Button to record a sound in the editor tab"
},
"soundEditor.softer": {
"message": "أخفض",
"description": "Title of the button to apply thr.softer effect"
},
"soundEditor.stop": {
"message": "وَقفْ",
"description": "Title of the button to stop the sound"
},
"stageSelector.backdrops": {
"message": "خَلْفِيَّة",
"description": "Label for the backdrops in the stage selector"
},
"soundEditor.undo": {
"message": "تَراجع",
"description": "Title of the button to undo"
},
"contextMenu.delete": {
"message": "حَذف",
"description": "Menu item to delete in the right click menu"
},
"targetPane.addSprite": {
"message": "أَضِف كائن",
"description": "Button to add a sprite in the target pane"
},
"soundEditor.louder": {
"message": "أعلى",
"description": "Title of the button to apply the louder effect"
}
}
94 changes: 94 additions & 0 deletions gui/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"action.addSound": {
"message": "Add Sound",
"description": "Button to add a sound in the editor tab"
},
"targetPane.addBackdrop": {
"message": "Add Backdrop",
"description": "Button to add a backdrop in the target pane"
},
"action.addCostume": {
"message": "Add Costume",
"description": "Button to add a costume in the editor tab"
},
"soundEditor.redo": {
"message": "Redo",
"description": "Title of the button to redo"
},
"soundEditor.play": {
"message": "Play",
"description": "Title of the button to start playing the sound"
},
"soundEditor.sound": {
"message": "Sound",
"description": "Lable for the name of the sound"
},
"soundEditor.save": {
"message": "Save",
"description": "Title of the button to save trimmed sound"
},
"action.addBackdrop": {
"message": "Add Backdrop",
"description": "Button to add a backdrop in the editor tab"
},
"controls.turboMode": {
"message": "Turbo Mode",
"description": "Label indicating turbo mode is active"
},
"soundEditor.robot": {
"message": "Robot",
"description": "Title of the button to apply the robot effect"
},
"soundEditor.slower": {
"message": "Slower",
"description": "Title of the button to apply the slower effect"
},
"soundEditor.trim": {
"message": "Trim",
"description": "Title of the button to start trimminging the sound"
},
"soundEditor.faster": {
"message": "Faster",
"description": "Title of the button to apply the faster effect"
},
"soundEditor.echo": {
"message": "Echo",
"description": "Title of the button to apply the echo effect"
},
"soundEditor.reverse": {
"message": "Reverse",
"description": "Title of the button to apply the reverse effect"
},
"action.recordSound": {
"message": "Record Sound",
"description": "Button to record a sound in the editor tab"
},
"soundEditor.softer": {
"message": "Softer",
"description": "Title of the button to apply thr.softer effect"
},
"soundEditor.stop": {
"message": "Stop",
"description": "Title of the button to stop the sound"
},
"stageSelector.backdrops": {
"message": "Backdrops",
"description": "Label for the backdrops in the stage selector"
},
"soundEditor.undo": {
"message": "Undo",
"description": "Title of the button to undo"
},
"contextMenu.delete": {
"message": "delete",
"description": "Menu item to delete in the right click menu"
},
"targetPane.addSprite": {
"message": "Add Sprite",
"description": "Button to add a sprite in the target pane"
},
"soundEditor.louder": {
"message": "Louder",
"description": "Title of the button to apply the louder effect"
}
}
76 changes: 76 additions & 0 deletions gui/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,92 @@
"message": "Add Sound",
"description": "Button to add a sound in the editor tab"
},
"targetPane.addBackdrop": {
"message": "Add Backdrop",
"description": "Button to add a backdrop in the target pane"
},
"action.addCostume": {
"message": "Add Costume",
"description": "Button to add a costume in the editor tab"
},
"soundEditor.redo": {
"message": "Redo",
"description": "Title of the button to redo"
},
"soundEditor.play": {
"message": "Play",
"description": "Title of the button to start playing the sound"
},
"soundEditor.sound": {
"message": "Sound",
"description": "Lable for the name of the sound"
},
"soundEditor.save": {
"message": "Save",
"description": "Title of the button to save trimmed sound"
},
"action.addBackdrop": {
"message": "Add Backdrop",
"description": "Button to add a backdrop in the editor tab"
},
"controls.turboMode": {
"message": "Turbo Mode",
"description": "Label indicating turbo mode is active"
},
"soundEditor.robot": {
"message": "Robot",
"description": "Title of the button to apply the robot effect"
},
"soundEditor.slower": {
"message": "Slower",
"description": "Title of the button to apply the slower effect"
},
"soundEditor.trim": {
"message": "Trim",
"description": "Title of the button to start trimminging the sound"
},
"soundEditor.faster": {
"message": "Faster",
"description": "Title of the button to apply the faster effect"
},
"soundEditor.echo": {
"message": "Echo",
"description": "Title of the button to apply the echo effect"
},
"soundEditor.reverse": {
"message": "Reverse",
"description": "Title of the button to apply the reverse effect"
},
"action.recordSound": {
"message": "Record Sound",
"description": "Button to record a sound in the editor tab"
},
"soundEditor.softer": {
"message": "Softer",
"description": "Title of the button to apply thr.softer effect"
},
"soundEditor.stop": {
"message": "Stop",
"description": "Title of the button to stop the sound"
},
"stageSelector.backdrops": {
"message": "Backdrops",
"description": "Label for the backdrops in the stage selector"
},
"soundEditor.undo": {
"message": "Undo",
"description": "Title of the button to undo"
},
"contextMenu.delete": {
"message": "delete",
"description": "Menu item to delete in the right click menu"
},
"targetPane.addSprite": {
"message": "Add Sprite",
"description": "Button to add a sprite in the target pane"
},
"soundEditor.louder": {
"message": "Louder",
"description": "Title of the button to apply the louder effect"
}
}
Loading

0 comments on commit 4a9cdc7

Please sign in to comment.