commit e666b0ce28786fe00652dda5e277a86c3211dbf1
parent 7f21d4f508ed3a31effcf0eac5d5265ecfe3c29a
Author: Yureka <yuka@yuka.dev>
Date: Fri, 4 Feb 2022 20:46:55 +0100
parent 7f21d4f508ed3a31effcf0eac5d5265ecfe3c29a
Author: Yureka <yuka@yuka.dev>
Date: Fri, 4 Feb 2022 20:46:55 +0100
translate experimental feature settings
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/client/src/languages.js b/client/src/languages.js @@ -190,5 +190,8 @@ export const languages = { 'table-view': 'Table', 'canvas-view': 'Canvas', 'map-view': 'Map', + 'show-map': 'Show geographical map view', + 'experimental-features': 'Experimental features:', + 'show-prices': 'Show prices', } };
diff --git a/client/src/settingsView.js b/client/src/settingsView.js @@ -11,7 +11,7 @@ export const showSettings = async () => { }; const settingsTemplate = () => html` - <div id="settingsView"> + <div id="settingsView"> <b>${t('options')}:</b><br> <label><input type="checkbox" ?checked=${settings.showRIL100Names} id="ril100"> ${t('showds100')}</label><br> <label><input type="checkbox" ?checked=${settings.writeDebugLog} id="debug-messages"> ${t('showdebug')}</label><br> @@ -23,10 +23,10 @@ const settingsTemplate = () => html` <label><input type="radio" name="language" ?checked=${settings.language === 'de'} value="de"> ${t('de')}</label><br> <label><input type="radio" name="language" ?checked=${settings.language === 'nl'} value="nl"> ${t('nl')}</label><br> <br> - <b>Experimental Features:</b><br> - <label><input type="checkbox" ?checked=${settings.showMap} id="feature-map"> Show geographic map</label><br> - <label><input type="checkbox" ?checked=${settings.showPrices} id="feature-prices"> Show prices</label><br> - + <b>${t('experimental-features')}:</b><br> + <label><input type="checkbox" ?checked=${settings.showMap} id="feature-map"> ${t('show-map')}</label><br> + <label><input type="checkbox" ?checked=${settings.showPrices} id="feature-prices"> ${t('show-prices')}</label><br> + <button class="button" id="clear" @click=${clearDataStorage}><span>${t('clearstorage')}</span></button> <button class="button" id="save" @click=${saveSettings}><span>${t('save')}</span></button> @@ -42,6 +42,7 @@ const rebuildCache = () => { const newAll = () => { ElementById('clear').innerText = 'New All'; + ElementById('save').innerText = 'Save'; }; const saveSettings = async () => {