From 956f4b198b103aab65844a067cff9a3906266a31 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Fri, 8 Dec 2023 22:37:56 +0600 Subject: [PATCH] chore: fix translations issues --- lib/components/home/sections/genres.dart | 2 +- lib/l10n/app_en.arb | 4 +- lib/pages/home/home.dart | 4 +- untranslated_messages.json | 60 ++++++++++++++++++------ 4 files changed, 52 insertions(+), 18 deletions(-) diff --git a/lib/components/home/sections/genres.dart b/lib/components/home/sections/genres.dart index 52467b28..190f24f7 100644 --- a/lib/components/home/sections/genres.dart +++ b/lib/components/home/sections/genres.dart @@ -45,7 +45,7 @@ class HomeGenresSection extends HookConsumerWidget { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( - context.l10n.genre, + context.l10n.genres, style: textTheme.headlineSmall, ), Directionality( diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 85900012..ccb95160 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -281,5 +281,7 @@ "login_with_your_lastfm": "Login with your Last.fm account", "scrobble_to_lastfm": "Scrobble to Last.fm", "go_to_album": "Go to Album", - "discord_rich_presence": "Discord Rich Presence" + "discord_rich_presence": "Discord Rich Presence", + "browse_all": "Browse All", + "genres": "Genres" } \ No newline at end of file diff --git a/lib/pages/home/home.dart b/lib/pages/home/home.dart index 0a8a0aac..2970cb62 100644 --- a/lib/pages/home/home.dart +++ b/lib/pages/home/home.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter_desktop_tools/flutter_desktop_tools.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:spotube/components/home/sections/featured.dart'; @@ -15,7 +16,8 @@ class HomePage extends HookConsumerWidget { final controller = useScrollController(); return Scaffold( - appBar: const PageWindowTitleBar(), + appBar: + DesktopTools.platform.isMobile ? null : const PageWindowTitleBar(), body: CustomScrollView( controller: controller, slivers: [ diff --git a/untranslated_messages.json b/untranslated_messages.json index e3bdc047..7ec3886a 100644 --- a/untranslated_messages.json +++ b/untranslated_messages.json @@ -1,76 +1,106 @@ { "ar": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "bn": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "ca": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "de": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "es": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "fa": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "fr": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "hi": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "ja": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "pl": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "pt": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "ru": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "tr": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "uk": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ], "zh": [ "go_to_album", - "discord_rich_presence" + "discord_rich_presence", + "browse_all", + "genres" ] }