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
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ export function getNoteMenu(props: {
let targetLang = localStorage.getItem('lang') || navigator.language;
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
targetLang = targetLang.split('-', 1)[0];
}