Skip to content

Commit

Permalink
Merge pull request #192 from OpenBracketsCH/development
Browse files Browse the repository at this point in the history
Add null handling for locales
  • Loading branch information
elektrolytmangel authored Sep 18, 2024
2 parents 6be055f + e447a31 commit 80ff63f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/i18n/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ i18n.init({
defaultNS: 'translation',
});

const deviceLanguage = getLocales()[0].languageCode || 'de';
const deviceLanguage = getLocales()[0]?.languageCode || 'de';
i18n.changeLanguage(deviceLanguage);

export default i18n;

0 comments on commit 80ff63f

Please sign in to comment.