deltachat / deltachat-desktop

Email-based instant messaging for Desktop.
GNU General Public License v3.0
909 stars 167 forks source link

Changing language does not immediately update the strings #3974

Open farooqkz opened 2 months ago

farooqkz commented 2 months ago

Softly depends on https://github.com/deltachat/deltachat-desktop/pull/3889

farooqkz commented 2 months ago

Alright the problem seems to be with window.static_translate...

farooqkz commented 2 months ago

Since from what I can see, it is mostly for timestamps, or at least partially, let's wait for luxon to replace moment and see how it'll go.

Simon-Laux commented 2 months ago

try to find the exact places where this happens, you can add a updateTimestamps() call to reloadLocaleData in App.tsx and test if that would already solve the issue. or we need to use useTranslationFunction in more places.