Update dialog strings to use i18n (#78)

pull/83/head
oad 2 years ago committed by GitHub
parent 30165129d2
commit 1ac4ff4e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -226,6 +226,20 @@
} }
}, },
"dialogs": {
"refresh": {
"title": "Refresh Required",
"note": "This setting **requires a refresh to take effect**. You **may experience some strange behaviour** in this session before refreshing.",
"button": "Refresh"
},
"reset_goosemod": {
"title": "Reset GooseMod",
"note": "Confirming will completely reset GooseMod, removing all preferences and modules; as if you had installed GooseMod for the first time. This is irreversible.",
"button": "Reset"
}
},
"ootb": { "ootb": {
"start": { "start": {
"confirm": "Learn More", "confirm": "Learn More",

@ -75,7 +75,7 @@ export default (goosemodScope, gmSettings, Items) => {
}; };
const refreshPrompt = async () => { const refreshPrompt = async () => {
if (await goosemodScope.confirmDialog('Refresh', 'Refresh Required', 'This setting **requires a refresh to take effect**. You **may experience some strange behaviour** in this session before refreshing.')) { if (await goosemodScope.confirmDialog('#dialogs.refresh.button#', '#dialogs.refresh.title#', '#dialogs.refresh.note#')) {
location.reload(); location.reload();
} }
}; };
@ -217,7 +217,7 @@ export default (goosemodScope, gmSettings, Items) => {
buttonText: '#settings.items.reset_goosemod.button#', buttonText: '#settings.items.reset_goosemod.button#',
onclick: async () => { onclick: async () => {
if (await goosemodScope.confirmDialog('Reset', 'Reset GooseMod', 'Confirming will completely reset GooseMod, removing all preferences and modules; as if you had installed GooseMod for the first time. This is irreversible.')) { if (await goosemodScope.confirmDialog('#dialogs.reset_goosemod.button#', '#dialogs.reset_goosemod.title#', '#dialogs.reset_goosemod.note#')) {
await goosemodScope.remove(); await goosemodScope.remove();
window.location.reload(); window.location.reload();
} }

Loading…
Cancel
Save