Skip to content

Commit

Permalink
fix form translations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBTurchyn committed Sep 5, 2023
1 parent 37ed110 commit 7c5c877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/submission_form/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const i18n = { en, es, it, de, fr, pl, uk, cs }

const browserLanguage = (navigator.language || navigator.userLanguage || 'en').split('-')[0]

const t = (key) => i18n[browserLanguage][key] || i18n.en[key] || key
const t = (key) => i18n[browserLanguage]?.[key] || i18n.en[key] || key

export default i18n
export { t }

0 comments on commit 7c5c877

Please sign in to comment.