feat: Take care of i18n

This commit is contained in:
PapaTutuWawa committed 2023-07-28 17:32:14 +02:00
1 parent f90b3866ab
commit adb8ee88d1
12 files changed
+277 -52

No files matched your search

+10 -1
View File
@@ -41,7 +41,16 @@ class MyAppState extends State<MyApp> {
Future<void> initStateAsync() async {
await Permission.notification.request();
await MoxplatformPlugin.notifications.createNotificationChannel("Test notification channel", channelId, false);
await MoxplatformPlugin.notifications.createNotificationChannel(
"Test notification channel",
channelId,
false,
NotificationI18nData(
reply: "答える",
markAsRead: "読みた",
you: "あなた",
),
);
MoxplatformPlugin.notifications.getEventStream().listen((event) {
print('NotificationEvent(type: ${event.type}, jid: ${event.jid}, payload: ${event.payload})');