👔 Ignore language, message always translatable
This commit is contained in:
@@ -62,16 +62,8 @@ class MessageItem extends HookConsumerWidget {
|
|||||||
|
|
||||||
final isMobile = !kIsWeb && (Platform.isAndroid || Platform.isIOS);
|
final isMobile = !kIsWeb && (Platform.isAndroid || Platform.isIOS);
|
||||||
|
|
||||||
final messageLanguage =
|
|
||||||
remoteMessage.content != null
|
|
||||||
? ref.watch(detectStringLanguageProvider(remoteMessage.content!))
|
|
||||||
: null;
|
|
||||||
|
|
||||||
final currentLanguage = context.locale.toString();
|
final currentLanguage = context.locale.toString();
|
||||||
final translatableLanguage =
|
final translatableLanguage = remoteMessage.content?.isNotEmpty ?? false;
|
||||||
messageLanguage != null
|
|
||||||
? messageLanguage.substring(0, 2) != currentLanguage.substring(0, 2)
|
|
||||||
: false;
|
|
||||||
|
|
||||||
final translating = useState(false);
|
final translating = useState(false);
|
||||||
final translatedText = useState<String?>(null);
|
final translatedText = useState<String?>(null);
|
||||||
|
Reference in New Issue
Block a user