diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-15 15:00:19 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-15 15:00:23 +0100 |
commit | 99b757488c077cee7d0ab89eeec181a7ee6290eb (patch) | |
tree | 307a3f39285f899e3ed616d92aae1bdd181178e0 /shared/core-utils/i18n | |
parent | 4638cd713dcdd007cd7f49b9a95fa62ac7823e7c (diff) | |
download | PeerTube-99b757488c077cee7d0ab89eeec181a7ee6290eb.tar.gz PeerTube-99b757488c077cee7d0ab89eeec181a7ee6290eb.tar.zst PeerTube-99b757488c077cee7d0ab89eeec181a7ee6290eb.zip |
Fix server lint
Diffstat (limited to 'shared/core-utils/i18n')
-rw-r--r-- | shared/core-utils/i18n/i18n.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/core-utils/i18n/i18n.ts b/shared/core-utils/i18n/i18n.ts index abc7acc8b..b720fb84e 100644 --- a/shared/core-utils/i18n/i18n.ts +++ b/shared/core-utils/i18n/i18n.ts | |||
@@ -82,7 +82,7 @@ export function isDefaultLocale (locale: string) { | |||
82 | } | 82 | } |
83 | 83 | ||
84 | export function peertubeTranslate (str: string, translations?: { [ id: string ]: string }) { | 84 | export function peertubeTranslate (str: string, translations?: { [ id: string ]: string }) { |
85 | if (!translations || !translations[str]) return str | 85 | if (!translations?.[str]) return str |
86 | 86 | ||
87 | return translations[str] | 87 | return translations[str] |
88 | } | 88 | } |