mirror of https://github.com/keeweb/keeweb.git
use themes translation
This commit is contained in:
parent
fcb93f6df8
commit
2ecf4b0e3c
|
@ -48,13 +48,13 @@ const SettingsGeneralView = Backbone.View.extend({
|
|||
views: null,
|
||||
|
||||
allThemes: {
|
||||
fb: Locale.setGenThemeFb,
|
||||
db: Locale.setGenThemeDb,
|
||||
sd: Locale.setGenThemeSd,
|
||||
sl: Locale.setGenThemeSl,
|
||||
wh: Locale.setGenThemeWh,
|
||||
te: Locale.setGenThemeTe,
|
||||
hc: Locale.setGenThemeHc
|
||||
fb: 'setGenThemeFb',
|
||||
db: 'setGenThemeDb',
|
||||
sd: 'setGenThemeSd',
|
||||
sl: 'setGenThemeSl',
|
||||
wh: 'setGenThemeWh',
|
||||
te: 'setGenThemeTe',
|
||||
hc: 'setGenThemeHc'
|
||||
},
|
||||
|
||||
allLocales: {
|
||||
|
@ -82,7 +82,7 @@ const SettingsGeneralView = Backbone.View.extend({
|
|||
const updateManual = UpdateModel.instance.get('updateManual');
|
||||
const storageProviders = this.getStorageProviders();
|
||||
this.renderTemplate({
|
||||
themes: this.allThemes,
|
||||
themes: _.mapObject(this.allThemes, theme => Locale[theme]),
|
||||
activeTheme: AppSettingsModel.instance.get('theme'),
|
||||
locales: this.allLocales,
|
||||
activeLocale: SettingsManager.activeLocale,
|
||||
|
|
Loading…
Reference in New Issue