diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-15 15:30:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:37:18 +0200 |
commit | 42b40636991b97fe818007fab19091764fc5db73 (patch) | |
tree | db431787c06ce898d22e91ff771f795219274fc6 /client/src/assets/player/translations-manager.ts | |
parent | 654d4ede7fa4d0faa71e49bcfab6b65a686397b2 (diff) | |
download | PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.gz PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.zst PeerTube-42b40636991b97fe818007fab19091764fc5db73.zip |
Add ability for client to create server logs
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 | } |