From 5120c89a1f2d8fce62a226b6eb635237b825226a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Rodr=C3=ADguez?= Date: Sun, 23 Mar 2025 23:28:24 -0300 Subject: [PATCH] feat(editor linter): add "Array" as accepted Phrase where a @translate directive can be See https://discord.com/channels/570672959799164958/574537911114924043/1353552205839597589 --- app/javascript/src/lib/OWLanguageLinter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/src/lib/OWLanguageLinter.ts b/app/javascript/src/lib/OWLanguageLinter.ts index 9aab8dd2..da78c95d 100644 --- a/app/javascript/src/lib/OWLanguageLinter.ts +++ b/app/javascript/src/lib/OWLanguageLinter.ts @@ -280,7 +280,7 @@ function checkTranslations(content: string): void { // Find translations that are not in client side actions const phrase = getPhraseFromPosition(line, parenthesisBeforeAtIndex - 1) - const acceptedPhrases = ["Create HUD Text", "Create In-World Text", "Create Progress Bar HUD Text", "Create Progress Bar In-World Text", "Set Objective Description", "Big Message", "Small Message"] + const acceptedPhrases = ["Create HUD Text", "Create In-World Text", "Create Progress Bar HUD Text", "Create Progress Bar In-World Text", "Set Objective Description", "Big Message", "Small Message", "Array"] if (phrase?.text.includes("include")) continue