|
|
|
@ -137,6 +137,7 @@ export class ConfigState { |
|
|
|
key: string | Config.LocalizationWithDefault, |
|
|
|
...interpolateParams: string[] |
|
|
|
) { |
|
|
|
if (!key) key = ''; |
|
|
|
let defaultValue: string; |
|
|
|
|
|
|
|
if (typeof key !== 'string') { |
|
|
|
@ -144,8 +145,6 @@ export class ConfigState { |
|
|
|
key = key.key; |
|
|
|
} |
|
|
|
|
|
|
|
if (!key) key = ''; |
|
|
|
|
|
|
|
const keys = key.split('::') as string[]; |
|
|
|
const selector = createSelector([ConfigState], (state: Config.State) => { |
|
|
|
if (!state.localization) return defaultValue || key; |
|
|
|
|