diff options
Diffstat (limited to 'client/src/assets/player/translations-manager.ts')
-rw-r--r-- | client/src/assets/player/translations-manager.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/assets/player/translations-manager.ts b/client/src/assets/player/translations-manager.ts index 8a6e67dda..bf9c2d471 100644 --- a/client/src/assets/player/translations-manager.ts +++ b/client/src/assets/player/translations-manager.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import { logger } from '@root-helpers/logger' | ||
1 | import { getCompleteLocale, getShortLocale, is18nLocale, isDefaultLocale } from '@shared/core-utils/i18n' | 2 | import { getCompleteLocale, getShortLocale, is18nLocale, isDefaultLocale } from '@shared/core-utils/i18n' |
2 | 3 | ||
3 | export class TranslationsManager { | 4 | export class TranslationsManager { |
@@ -11,7 +12,7 @@ export class TranslationsManager { | |||
11 | return fetch(path + '/server.json') | 12 | return fetch(path + '/server.json') |
12 | .then(res => res.json()) | 13 | .then(res => res.json()) |
13 | .catch(err => { | 14 | .catch(err => { |
14 | console.error('Cannot get server translations', err) | 15 | logger.error('Cannot get server translations', err) |
15 | return undefined | 16 | return undefined |
16 | }) | 17 | }) |
17 | } | 18 | } |
@@ -33,7 +34,7 @@ export class TranslationsManager { | |||
33 | return json | 34 | return json |
34 | }) | 35 | }) |
35 | .catch(err => { | 36 | .catch(err => { |
36 | console.error('Cannot get player translations', err) | 37 | logger.error('Cannot get player translations', err) |
37 | return undefined | 38 | return undefined |
38 | }) | 39 | }) |
39 | } | 40 | } |