From 81b9ba683a332052a1a4dd0d15c47a676ccdf522 Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Sun, 23 Apr 2023 22:06:39 +0200 Subject: [PATCH] fix: make similar albums translateable --- .eslintrc.js | 6 ++++++ src/localisation/lang/en/locale.json | 3 ++- src/localisation/lang/nl/locale.json | 3 ++- src/localisation/types.ts | 3 ++- src/screens/Downloads/index.tsx | 2 +- src/screens/Music/stacks/Album.tsx | 2 +- src/screens/Music/stacks/components/TrackListView.tsx | 2 +- 7 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 39a7953..31e1fe9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -52,6 +52,12 @@ module.exports = { 'react/prop-types': 'off', '@typescript-eslint/no-unused-vars': [ 'error' + ], + 'react/jsx-no-literals': [ + 'error', + { + ignoreProps: true + } ] }, settings: { diff --git a/src/localisation/lang/en/locale.json b/src/localisation/lang/en/locale.json index b5eb8ba..a12a891 100644 --- a/src/localisation/lang/en/locale.json +++ b/src/localisation/lang/en/locale.json @@ -60,5 +60,6 @@ "playing-on": "Playing on", "local-playback": "Local playback", "streaming": "Streaming", - "total-duration": "Total duration" + "total-duration": "Total duration", + "similar-albums": "Similar albums" } \ No newline at end of file diff --git a/src/localisation/lang/nl/locale.json b/src/localisation/lang/nl/locale.json index 210d851..8c34e2b 100644 --- a/src/localisation/lang/nl/locale.json +++ b/src/localisation/lang/nl/locale.json @@ -60,5 +60,6 @@ "playing-on": "Speelt af op", "local-playback": "Lokaal afspelen", "streaming": "Streamen", - "total-duration": "Totale duur" + "total-duration": "Totale duur", + "similar-albums": "Vergelijkbare albums" } \ No newline at end of file diff --git a/src/localisation/types.ts b/src/localisation/types.ts index 1a9690b..dfae5e9 100644 --- a/src/localisation/types.ts +++ b/src/localisation/types.ts @@ -58,4 +58,5 @@ export type LocaleKeys = 'play-next' | 'playing-on' | 'local-playback' | 'streaming' -| 'total-duration' \ No newline at end of file +| 'total-duration' +| 'similar-albums' \ No newline at end of file diff --git a/src/screens/Downloads/index.tsx b/src/screens/Downloads/index.tsx index 4c8d786..f899b4c 100644 --- a/src/screens/Downloads/index.tsx +++ b/src/screens/Downloads/index.tsx @@ -82,7 +82,7 @@ function Downloads() { ]} numberOfLines={1} > - {t('total-download-size')}: {formatBytes(totalDownloadSize)} + {t('total-download-size')}{': '}{formatBytes(totalDownloadSize)}