client: fix inline translations

This commit is contained in:
Norm 2022-09-24 22:13:31 -04:00
parent 9470e12424
commit 87f1b0cabc
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -195,7 +195,7 @@ export function getNoteMenu(props: {
let targetLang = localStorage.getItem('lang') || navigator.language; let targetLang = localStorage.getItem('lang') || navigator.language;
targetLang = targetLang.toUpperCase(); targetLang = targetLang.toUpperCase();
if (!['EN-GB', 'EN-US', 'PT-BR', 'PT-PT'].íncludes(targetLang)) { if (!['EN-GB', 'EN-US', 'PT-BR', 'PT-PT'].includes(targetLang)) {
// only the language code without country code is allowed // only the language code without country code is allowed
targetLang = targetLang.split('-', 1)[0]; targetLang = targetLang.split('-', 1)[0];
} }