Change translation keys

This commit is contained in:
problematicconsumer
2024-03-08 17:24:43 +03:30
parent 7f0397a97f
commit 4118863a20
20 changed files with 1004 additions and 1005 deletions

View File

@@ -33,9 +33,9 @@ sealed class ConnectionStatus with _$ConnectionStatus {
};
String present(TranslationsEn t) => switch (this) {
Disconnected() => t.home.connection.tapToConnect,
Connecting() => t.home.connection.connecting,
Connected() => t.home.connection.connected,
Disconnecting() => t.home.connection.disconnecting,
Disconnected() => t.connection.tapToConnect,
Connecting() => t.connection.connecting,
Connected() => t.connection.connected,
Disconnecting() => t.connection.disconnecting,
};
}

View File

@@ -27,8 +27,8 @@ class _ConnectionWrapperState extends ConsumerState<ConnectionWrapper>
if (next case AsyncData(value: true)) {
final t = ref.read(translationsProvider);
ref.watch(inAppNotificationControllerProvider).showActionToast(
t.settings.config.reconnectMsg,
actionText: t.settings.config.reconnectBtn,
t.connection.reconnectMsg,
actionText: t.connection.reconnect,
callback: () async {
await ref
.read(connectionNotifierProvider.notifier)

View File

@@ -32,7 +32,7 @@ class ExperimentalFeatureNoticeDialog extends HookConsumerWidget {
final disableNotice = ref.watch(disableExperimentalFeatureNoticeProvider);
return AlertDialog(
title: Text(t.home.connection.experimentalNotice),
title: Text(t.connection.experimentalNotice),
content: SingleChildScrollView(
child: SizedBox(
width: 468,
@@ -40,11 +40,11 @@ class ExperimentalFeatureNoticeDialog extends HookConsumerWidget {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(t.home.connection.experimentalNoticeMsg),
Text(t.connection.experimentalNoticeMsg),
const Gap(8),
CheckboxListTile(
value: disableNotice,
title: Text(t.home.connection.disableExperimentalNotice),
title: Text(t.connection.disableExperimentalNotice),
secondary: const Icon(FluentIcons.eye_off_24_regular),
onChanged: (value) async => ref
.read(disableExperimentalFeatureNoticeProvider.notifier)
@@ -52,7 +52,7 @@ class ExperimentalFeatureNoticeDialog extends HookConsumerWidget {
dense: true,
),
ListTile(
title: Text(t.settings.config.pageTitle),
title: Text(t.config.pageTitle),
leading: const Icon(FluentIcons.box_edit_24_regular),
trailing: const Icon(FluentIcons.chevron_right_20_regular),
onTap: () async {
@@ -76,7 +76,7 @@ class ExperimentalFeatureNoticeDialog extends HookConsumerWidget {
),
TextButton(
onPressed: () => Navigator.of(context).maybePop(true),
child: Text(t.home.connection.connectAnyWay.toUpperCase()),
child: Text(t.connection.connectAnyWay.toUpperCase()),
),
],
);