mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-21 15:25:22 +03:00
add an alternative to chrome.storage.local
This commit is contained in:
parent
5eedc3b507
commit
426e753b53
11 changed files with 141 additions and 99 deletions
|
@ -125,7 +125,7 @@ i18n.localizePage = function() {
|
|||
* returns the current locale to the callback
|
||||
*/
|
||||
function getStoredUserLocale(cb) {
|
||||
chrome.storage.local.get('userLanguageSelect', function (result) {
|
||||
ConfigStorage.get('userLanguageSelect', function (result) {
|
||||
var userLanguage = 'DEFAULT';
|
||||
if (result.userLanguageSelect) {
|
||||
userLanguage = result.userLanguageSelect
|
||||
|
@ -171,4 +171,4 @@ i18n.addResources = function(bundle) {
|
|||
var lang = takeFirst(i18next.options.fallbackLng),
|
||||
ns = takeFirst(i18next.options.defaultNS);
|
||||
i18next.addResourceBundle(lang, ns, bundle, true, true);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue