Skip to content

Commit

Permalink
Begin i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy-Orbison committed Jun 24, 2022
1 parent 2af3b45 commit f8b58f7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
22 changes: 22 additions & 0 deletions _locales/en-GB/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extensionName": {
"message": "GBin",
"description": "Name of the extension."
},
"extensionDescription": {
"message": "Provides a button and keyboard shortcut (Shift + Alt + Delete by default) to move mail to its account's Bin folder, regardless of normal delete setting.",
"description": "Description of the extension."
},
"commandDescription": {
"message": "Move selected/active messages to Bin",
"description": "Description of the keyboard shortcut action."
},
"actionLabel": {
"message": "To Bin",
"description": "Label on action button."
},
"actionTitle": {
"message": "Move to Bin",
"description": "Title of action button."
}
}
22 changes: 22 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extensionName": {
"message": "GTrash",
"description": "Name of the extension."
},
"extensionDescription": {
"message": "Provides a button and keyboard shortcut (Shift + Alt + Delete by default) to move mail to its account's Trash folder, regardless of normal delete setting.",
"description": "Description of the extension."
},
"commandDescription": {
"message": "Move selected/active messages to Trash",
"description": "Description of the keyboard shortcut action."
},
"actionLabel": {
"message": "To Trash",
"description": "Label on action button."
},
"actionTitle": {
"message": "Move to Trash",
"description": "Title of action button."
}
}
13 changes: 7 additions & 6 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"licence": "This Source Code Form is subject to the terms of the Mozilla Public License, v2.0. If a copy of the MPL was not distributed with this file, you can obtain one at https://mozilla.org/MPL/2.0/",
"copyright": "© 2022 Roy Orbison",
"manifest_version": 2,
"name": "GTrash",
"default_locale": "en",
"name": "__MSG_extensionName__",
"author": "Roy Orbison",
"version": "0.2.0",
"description": "Provides a button and keyboard shortcut (Shift + Alt + Delete by default) to move mail to its account's Trash folder, regardless of normal delete setting.",
"version": "0.2.1",
"description": "__MSG_extensionDescription__",
"icons": {
"96": "icon.svg"
},
Expand All @@ -32,15 +33,15 @@
"suggested_key": {
"default": "Shift+Alt+Delete"
},
"description": "Move selected/active messages to Trash"
"description": "__MSG_commandDescription__"
}
},
"message_display_action": {
"default_icon": {
"96": "icon.svg"
},
"default_label": "To Trash",
"default_title": "Move to Trash",
"default_label": "__MSG_actionLabel__",
"default_title": "__MSG_actionTitle__",
"theme_icons": [
{
"dark": "icon-black.svg",
Expand Down

0 comments on commit f8b58f7

Please sign in to comment.