fix(web-push): re-init i18n on each sw message
This commit is contained in:
parent
6a93dc9d54
commit
c7f85e6283
3 changed files with 32 additions and 24 deletions
|
@ -20,10 +20,12 @@ import Messaging from "./Messaging";
|
|||
import Login from "./Login";
|
||||
import Signup from "./Signup";
|
||||
import Account from "./Account";
|
||||
import "../app/i18n"; // Translations!
|
||||
import initI18n from "../app/i18n"; // Translations!
|
||||
import prefs, { THEME } from "../app/Prefs";
|
||||
import RTLCacheProvider from "./RTLCacheProvider";
|
||||
|
||||
initI18n();
|
||||
|
||||
export const AccountContext = createContext(null);
|
||||
|
||||
const darkModeEnabled = (prefersDarkMode, themePreference) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue