From 87f1b0cabc1ec76e0ecf8176aa378d6cc2cb2c40 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Sat, 24 Sep 2022 22:13:31 -0400 Subject: [PATCH] client: fix inline translations --- packages/client/src/scripts/get-note-menu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts index 465fe1a40..72b3699bc 100644 --- a/packages/client/src/scripts/get-note-menu.ts +++ b/packages/client/src/scripts/get-note-menu.ts @@ -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]; }