Translate Notifications#438
Conversation
zjs81
left a comment
There was a problem hiding this comment.
Look good except requires some minor changes
|
Sorry didn't know that they need specific prompt. I tried and tested it, and it worked. It could be that it took a little longer to translate and that would explain it, but otherwise I got less german to german translations. I also did the simple translation heuristics PR. But it is really simple and gives sometimes the wrong language. I tried other methods like n-gramms with weigthened scores, but the results were not better, which is why I published the simplest method. I think the best solution would be to use the model to recognize and return the language, but I can not find a prompt for that. Or someone has an other Idea that is working better, as the keyword approach. Sincerely Eric |
|
You should use this https://pub.dev/documentation/flutter_langdetect/latest/ |
|
It is also a n-gramm approach, but with a lot more statistics behind it, than i could provide. |
|
I would say go ahead and do it in this PR. If we are going to use this lib we should just put it in our helper that way it can also be used else where. Thank you! |
1d0b141 to
75ae903
Compare
|
Sorry pushed a test, I didn't want to. |
|
How well does it work so far? |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 75ae903b99
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
The Language detection Library works a lot better, than the previous implementation. But through the small Texts like "Hallo", which could be FI as also DE, you still get false Positives. I don't think we can get rid of that completely. |
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1fbe1823cb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…chat or manual translation on message action. Due to heavy battery usage.
|
There were changes on the dev Branch, which conflicted with my pull Request. |
|
Thanks |
commit 0287de1 Merge: a50c0d0 bac82dc Author: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Sun May 24 15:47:47 2026 -0700 Merge pull request zjs81#438 from ericszimmermann/ez_translate_notification Translate Notifications commit bac82dc Author: ericz <erics.zimmermann@gmail.com> Date: Thu May 21 00:11:54 2026 +0200 Fix Flutter SDK update commit 8682e6e Author: ericz <erics.zimmermann@gmail.com> Date: Thu May 21 00:02:21 2026 +0200 fix missing _handleQueuedMessageReceived after merge of dev commit 30a1a36 Merge: 3fe5cdf a50c0d0 Author: ericszimmermann <ericszimmermann@users.noreply.github.com> Date: Wed May 20 23:26:05 2026 +0200 Merge branch 'dev' into ez_translate_notification commit 3fe5cdf Author: ericz <erics.zimmermann@gmail.com> Date: Wed May 20 23:20:16 2026 +0200 update to current dev a50c0d0 commit 9ada4ea Author: ericz <erics.zimmermann@gmail.com> Date: Wed May 20 21:24:54 2026 +0200 add toggle for autmatically translated messages for notification and chat or manual translation on message action. Due to heavy battery usage. commit bc5f299 Author: ericz <erics.zimmermann@gmail.com> Date: Sun May 17 10:47:50 2026 +0200 try fix codex sync problem commit 1fbe182 Author: ericz <erics.zimmermann@gmail.com> Date: Wed May 13 18:06:26 2026 +0200 only take translated result if status==completed commit f941f0d Author: ZIER <ezimmermann@kuhner.com> Date: Wed May 13 12:08:41 2026 +0200 avoid double translation and strip replyInfo from translated text. commit 75ae903 Author: ZIER <ezimmermann@kuhner.com> Date: Tue May 12 10:24:01 2026 +0200 implement flutter_langdetect commit 1f6b2da Author: ericz <erics.zimmermann@gmail.com> Date: Mon May 11 07:15:39 2026 +0200 changed translation prompt back to specific input. commit d2a6fbe Author: ericz <erics.zimmermann@gmail.com> Date: Sun May 10 11:09:25 2026 +0200 translate notifications.
commit 313cb58 Merge: d551ac4 264d2bc Author: HDDen <62592944+HDDen@users.noreply.github.com> Date: Tue May 26 21:18:48 2026 +0300 Merge branch 'dev' into rename-mco-advanced-alfa-build commit 264d2bc Merge: 0287de1 8dd385b Author: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Tue May 26 10:15:00 2026 -0700 Merge pull request zjs81#462 from HDDen/sync-progressbar Onstart syncronization progressbar commit d551ac4 Author: HDDen <62592944+HDDen@users.noreply.github.com> Date: Tue May 26 00:53:18 2026 +0300 Update channel_chat_screen.dart commit 3559409 Merge: 214bd96 8dd385b Author: HDDen <62592944+HDDen@users.noreply.github.com> Date: Tue May 26 00:52:12 2026 +0300 Merge branch 'sync-progressbar' into rename-mco-advanced-alfa-build commit 8dd385b Merge: 2328848 0287de1 Author: HDDen <62592944+HDDen@users.noreply.github.com> Date: Tue May 26 00:44:08 2026 +0300 Merge branch 'dev' into sync-progressbar commit 2328848 Author: HDDen <62592944+HDDen@users.noreply.github.com> Date: Tue May 26 00:37:42 2026 +0300 Onstart sync progressbar: fix potential bug with spinner on interrupt synchronization commit 0287de1 Merge: a50c0d0 bac82dc Author: zjs81 <30362347+zjs81@users.noreply.github.com> Date: Sun May 24 15:47:47 2026 -0700 Merge pull request zjs81#438 from ericszimmermann/ez_translate_notification Translate Notifications commit bac82dc Author: ericz <erics.zimmermann@gmail.com> Date: Thu May 21 00:11:54 2026 +0200 Fix Flutter SDK update commit 8682e6e Author: ericz <erics.zimmermann@gmail.com> Date: Thu May 21 00:02:21 2026 +0200 fix missing _handleQueuedMessageReceived after merge of dev commit 30a1a36 Merge: 3fe5cdf a50c0d0 Author: ericszimmermann <ericszimmermann@users.noreply.github.com> Date: Wed May 20 23:26:05 2026 +0200 Merge branch 'dev' into ez_translate_notification commit 3fe5cdf Author: ericz <erics.zimmermann@gmail.com> Date: Wed May 20 23:20:16 2026 +0200 update to current dev a50c0d0 commit 9ada4ea Author: ericz <erics.zimmermann@gmail.com> Date: Wed May 20 21:24:54 2026 +0200 add toggle for autmatically translated messages for notification and chat or manual translation on message action. Due to heavy battery usage. commit bc5f299 Author: ericz <erics.zimmermann@gmail.com> Date: Sun May 17 10:47:50 2026 +0200 try fix codex sync problem commit 1fbe182 Author: ericz <erics.zimmermann@gmail.com> Date: Wed May 13 18:06:26 2026 +0200 only take translated result if status==completed commit f941f0d Author: ZIER <ezimmermann@kuhner.com> Date: Wed May 13 12:08:41 2026 +0200 avoid double translation and strip replyInfo from translated text. commit 75ae903 Author: ZIER <ezimmermann@kuhner.com> Date: Tue May 12 10:24:01 2026 +0200 implement flutter_langdetect commit 1f6b2da Author: ericz <erics.zimmermann@gmail.com> Date: Mon May 11 07:15:39 2026 +0200 changed translation prompt back to specific input. commit d2a6fbe Author: ericz <erics.zimmermann@gmail.com> Date: Sun May 10 11:09:25 2026 +0200 translate notifications.
A change to translate Notification, if translation is enabled.
Implementation of Issue #366
Best Regards Eric