Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
340 B
2
Indexable
Never
useEffect(() => {
    if (state.auth.language) {
      switch (state.auth.language) {
        case "EN":
          i18n.changeLanguage("en");
          break;
        case "ES":
          i18n.changeLanguage("es");
          break;
        default:
          i18n.changeLanguage("de");
          break;
      }
    }
  }, []);