UI: Fixed doubled error message for missing translate
This commit is contained in:
parent
76ea7c95d3
commit
faa1ff5aca
@ -20,7 +20,8 @@ import { customTranslationsPrefix } from '@app/shared/models/constants';
|
||||
export class TbMissingTranslationHandler implements MissingTranslationHandler {
|
||||
handle(params: MissingTranslationHandlerParams) {
|
||||
if (params.key && !params.key.startsWith(customTranslationsPrefix)) {
|
||||
console.warn('Translation for ' + params.key + ' doesn\'t exist');
|
||||
console.warn('Translation for \'' + params.key + '\' doesn\'t exist');
|
||||
}
|
||||
params.translateService.set(params.key, params.key);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user