mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
first i18n entry (moving notification strings)
This commit is contained in:
parent
eb32e0ddb3
commit
db9a4f4dc0
2 changed files with 9 additions and 3 deletions
|
@ -1,2 +1,8 @@
|
||||||
{
|
{
|
||||||
|
"notifications_app_just_updated_to_version": {
|
||||||
|
"message": "Application just updated to version: $1"
|
||||||
|
},
|
||||||
|
"notifications_click_here_to_start_app": {
|
||||||
|
"message": "Click here to start the application"
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -48,10 +48,10 @@ chrome.runtime.onInstalled.addListener(function(details) {
|
||||||
var options = {
|
var options = {
|
||||||
priority: 0,
|
priority: 0,
|
||||||
type: 'basic',
|
type: 'basic',
|
||||||
title: 'Baseflight Configurator Update',
|
title: manifest.name,
|
||||||
message: 'Application just updated to version: ' + manifest.version,
|
message: chrome.i18n.getMessage('notifications_app_just_updated_to_version', [manifest.version]),
|
||||||
iconUrl: '/images/icon_128.png',
|
iconUrl: '/images/icon_128.png',
|
||||||
buttons: [{'title': 'Click this button to start the application'}]
|
buttons: [{'title': chrome.i18n.getMessage('notifications_click_here_to_start_app')}]
|
||||||
};
|
};
|
||||||
|
|
||||||
chrome.notifications.create('baseflight_update', options, function(notificationId) {
|
chrome.notifications.create('baseflight_update', options, function(notificationId) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue