Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two translations namespaces, plugin uses the wrong translation #1226

Open
Tazi0 opened this issue Oct 29, 2024 · 3 comments
Open

Two translations namespaces, plugin uses the wrong translation #1226

Tazi0 opened this issue Oct 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Tazi0
Copy link

Tazi0 commented Oct 29, 2024

Describe the bug
So in my React TSX file I have two "useTranslations":

	const t = useTranslations("organisms.ranking-selection");
	const tGeneric = useTranslations("generic");

When I go and use t the following code says: <h2>{ t('selection', { circuit: race.circuit }) }</h2>: en: i18n key "generic.selection" does not exist
Screenshot 2024-10-29 at 09 53 51

When I use tGeneric it doesn't even recognize the translation
Screenshot 2024-10-29 at 09 52 13

Extension Version

i18n Ally: v2.12.0

Framework/i18n package you are using
Next.js (+ Typescript) & package: next-intl

To Reproduce
Steps to reproduce the behavior:

  1. Use 2 imports via useTranslations
  2. Use both translations
  3. See the bug

Device Infomation

  • OS: MacOS
  • Version: 15.0.1 (24A348)
  • VS Code Version: latest?

Extension Log
Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information

🈶 Activated, v2.12.0

――――――

💼 Workspace root changed to "/Users/tazio/Desktop/Personal/f1-nr10-app"
📦 Packages file "package.json" found
🕳 Packages file "pubspec.yaml" not exists
🕳 Packages file "composer.json" not exists
🕳 Packages file "Gemfile" not exists
🧰 Config "i18n-ally.localesPaths" changed, reloading
🔁 Reloading loader
📦 Packages file "package.json" found
🕳 Packages file "pubspec.yaml" not exists
🕳 Packages file "composer.json" not exists
🕳 Packages file "Gemfile" not exists
🌞 Enabled
🧩 Enabled frameworks: next-intl, General
🧬 Enabled parsers: json, yaml, json5

📈 Telemetry id: 62076651-081b-4855-92ee-d3d0c8aa636f
🚀 Initializing loader "/Users/tazio/Desktop/Personal/f1-nr10-app"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.(?<ext>json|ya?ml|json5)$/

📂 Loading locales under /Users/tazio/Desktop/Personal/f1-nr10-app/messages
	📑 Loading (en) en.json [1729585782914.9678]
	📑 Loading (nl) nl.json [1729585782915.9194]

👀 Watching change on /Users/tazio/Desktop/Personal/f1-nr10-app/messages

📂 Loading locales under /Users/tazio/Desktop/Personal/f1-nr10-app/src/i18n

👀 Watching change on /Users/tazio/Desktop/Personal/f1-nr10-app/src/i18n
✅ Loading finished


――――――
....
🔄 File changed (change) nl.json
	📑 Loading (nl) nl.json [1730191589848.6702]
✅ Loading finished

🐛 ERROR: SyntaxError: Unexpected token (18:34)
SyntaxError: Unexpected token (18:34)
    at Parser._raise (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14168:17)
    at Parser.raiseWithData (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14161:17)
    at Parser.raise (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14122:17)
    at Parser.unexpected (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:16627:16)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24890:20)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseObjectProperty (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25485:101)
    at Parser.parseObjPropValue (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25510:100)
    at Parser.parseObjPropValue (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22818:11)
    at Parser.parsePropertyDefinition (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25434:10)
    at Parser.parseObjectLike (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25323:25)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24802:23)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseExprListItem (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25702:18)
    at Parser.parseCallExpressionArguments (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24655:22)
    at Parser.parseCoverCallAndAsyncArrowHead (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24562:29)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24495:19)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22422:18)
    at Parser.parseSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24468:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24457:17)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at Parser.parseExpressionBase (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24124:23)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:17)
    at Parser.jsxParseExpressionContainer (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20379:31)
    at Parser.jsxParseElementAt (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20474:36)
    at Parser.jsxParseElementAt (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20459:32)
    at Parser.jsxParseElement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20517:17)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20524:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22859:39
    at Parser.tryParse (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:16654:20)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22859:18)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseParenAndDistinguishExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25149:28)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24780:23)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at Parser.parseExpressionBase (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24124:23)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25959:16)
    at Parser.parseExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:17)
    at Parser.parseReturnStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26544:28)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26214:21)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22562:18)
    at Parser.parseStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26166:17)
    at Parser.parseBlockOrModuleBlockBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26755:25)
    at Parser.parseBlockBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26746:10)
    at Parser.parseBlock (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26730:10)
    at Parser.parseFunctionBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25615:24)
    at Parser.parseFunctionBodyAndFinish (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25599:10)
    at Parser.parseFunctionBodyAndFinish (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22319:11)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26888:12
    at Parser.withSmartMixTopicForbiddingContext (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25936:14)
    at Parser.parseFunction (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26887:10)
    at Parser.parseExportDefaultExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:27367:19)
    at Parser.parseExportDefaultExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22547:18)
    at Parser.parseExport (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:27290:31)
    at Parser.parseExport (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22523:20)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26272:27)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22562:18)
    at Parser.parseStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26166:17)
🐛 ERROR: SyntaxError: Unexpected token (18:35)
SyntaxError: Unexpected token (18:35)
    at Parser._raise (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14168:17)
    at Parser.raiseWithData (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14161:17)
    at Parser.raise (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14122:17)
    at Parser.unexpected (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:16627:16)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24890:20)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseObjectProperty (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25485:101)
    at Parser.parseObjPropValue (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25510:100)
    at Parser.parseObjPropValue (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22818:11)
    at Parser.parsePropertyDefinition (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25434:10)
    at Parser.parseObjectLike (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25323:25)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24802:23)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseExprListItem (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25702:18)
    at Parser.parseCallExpressionArguments (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24655:22)
    at Parser.parseCoverCallAndAsyncArrowHead (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24562:29)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24495:19)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22422:18)
    at Parser.parseSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24468:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24457:17)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at Parser.parseExpressionBase (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24124:23)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:17)
    at Parser.jsxParseExpressionContainer (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20379:31)
    at Parser.jsxParseElementAt (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20474:36)
    at Parser.jsxParseElementAt (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20459:32)
    at Parser.jsxParseElement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20517:17)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20524:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22859:39
    at Parser.tryParse (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:16654:20)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22859:18)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseParenAndDistinguishExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25149:28)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24780:23)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at Parser.parseExpressionBase (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24124:23)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25959:16)
    at Parser.parseExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:17)
    at Parser.parseReturnStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26544:28)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26214:21)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22562:18)
    at Parser.parseStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26166:17)
    at Parser.parseBlockOrModuleBlockBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26755:25)
    at Parser.parseBlockBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26746:10)
    at Parser.parseBlock (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26730:10)
    at Parser.parseFunctionBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25615:24)
    at Parser.parseFunctionBodyAndFinish (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25599:10)
    at Parser.parseFunctionBodyAndFinish (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22319:11)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26888:12
    at Parser.withSmartMixTopicForbiddingContext (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25936:14)
    at Parser.parseFunction (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26887:10)
    at Parser.parseExportDefaultExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:27367:19)
    at Parser.parseExportDefaultExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22547:18)
    at Parser.parseExport (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:27290:31)
    at Parser.parseExport (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22523:20)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26272:27)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22562:18)
    at Parser.parseStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26166:17)
🐛 ERROR: SyntaxError: Unexpected token (18:35)
SyntaxError: Unexpected token (18:35)
    at Parser._raise (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14168:17)
    at Parser.raiseWithData (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14161:17)
    at Parser.raise (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14122:17)
    at Parser.unexpected (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:16627:16)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24890:20)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseObjectProperty (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25485:101)
    at Parser.parseObjPropValue (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25510:100)
    at Parser.parseObjPropValue (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22818:11)
    at Parser.parsePropertyDefinition (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25434:10)
    at Parser.parseObjectLike (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25323:25)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24802:23)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseExprListItem (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25702:18)
    at Parser.parseCallExpressionArguments (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24655:22)
    at Parser.parseCoverCallAndAsyncArrowHead (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24562:29)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24495:19)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22422:18)
    at Parser.parseSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24468:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24457:17)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at Parser.parseExpressionBase (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24124:23)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:17)
    at Parser.jsxParseExpressionContainer (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20379:31)
    at Parser.jsxParseElementAt (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20474:36)
    at Parser.jsxParseElementAt (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20459:32)
    at Parser.jsxParseElement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20517:17)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20524:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22859:39
    at Parser.tryParse (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:16654:20)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22859:18)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseParenAndDistinguishExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25149:28)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24780:23)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at Parser.parseExpressionBase (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24124:23)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25959:16)
    at Parser.parseExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:17)
    at Parser.parseReturnStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26544:28)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26214:21)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22562:18)
    at Parser.parseStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26166:17)
    at Parser.parseBlockOrModuleBlockBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26755:25)
    at Parser.parseBlockBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26746:10)
    at Parser.parseBlock (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26730:10)
    at Parser.parseFunctionBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25615:24)
    at Parser.parseFunctionBodyAndFinish (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25599:10)
    at Parser.parseFunctionBodyAndFinish (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22319:11)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26888:12
    at Parser.withSmartMixTopicForbiddingContext (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25936:14)
    at Parser.parseFunction (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26887:10)
    at Parser.parseExportDefaultExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:27367:19)
    at Parser.parseExportDefaultExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22547:18)
    at Parser.parseExport (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:27290:31)
    at Parser.parseExport (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22523:20)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26272:27)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22562:18)
    at Parser.parseStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26166:17)
!!!x2!!!
🐛 ERROR: SyntaxError: Unexpected token (18:40)
SyntaxError: Unexpected token (18:40)
    at Parser._raise (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14168:17)
    at Parser.raiseWithData (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14161:17)
    at Parser.raise (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:14122:17)
    at Parser.unexpected (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:16627:16)
    at Parser.parseIdentifierName (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25732:18)
    at Parser.parseIdentifier (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25710:23)
    at Parser.parseMember (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24510:103)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24497:19)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22422:18)
    at Parser.parseSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24468:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24457:17)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseObjectProperty (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25485:101)
    at Parser.parseObjPropValue (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25510:100)
    at Parser.parseObjPropValue (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22818:11)
    at Parser.parsePropertyDefinition (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25434:10)
    at Parser.parseObjectLike (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25323:25)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24802:23)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseExprListItem (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25702:18)
    at Parser.parseCallExpressionArguments (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24655:22)
    at Parser.parseCoverCallAndAsyncArrowHead (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24562:29)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24495:19)
    at Parser.parseSubscript (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22422:18)
    at Parser.parseSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24468:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24457:17)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at Parser.parseExpressionBase (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24124:23)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:17)
    at Parser.jsxParseExpressionContainer (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20379:31)
    at Parser.jsxParseElementAt (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20474:36)
    at Parser.jsxParseElementAt (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20459:32)
    at Parser.jsxParseElement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20517:17)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20524:19)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22859:39
    at Parser.tryParse (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:16654:20)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22859:18)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25965:12)
    at Parser.parseMaybeAssignAllowIn (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24146:17)
    at Parser.parseParenAndDistinguishExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25149:28)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24780:23)
    at Parser.parseExprAtom (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:20529:20)
    at Parser.parseExprSubscripts (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24451:23)
    at Parser.parseUpdate (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24431:21)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24409:23)
    at Parser.parseMaybeUnary (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22928:20)
    at Parser.parseExprOps (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24252:23)
    at Parser.parseMaybeConditional (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24226:23)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24184:21)
    at Parser.parseMaybeAssign (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22873:20)
    at Parser.parseExpressionBase (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24124:23)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:39
    at Parser.allowInAnd (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25959:16)
    at Parser.parseExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:24118:17)
    at Parser.parseReturnStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26544:28)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26214:21)
    at Parser.parseStatementContent (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22562:18)
    at Parser.parseStatement (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26166:17)
    at Parser.parseBlockOrModuleBlockBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26755:25)
    at Parser.parseBlockBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26746:10)
    at Parser.parseBlock (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26730:10)
    at Parser.parseFunctionBody (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25615:24)
    at Parser.parseFunctionBodyAndFinish (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25599:10)
    at Parser.parseFunctionBodyAndFinish (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22319:11)
    at /Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26888:12
    at Parser.withSmartMixTopicForbiddingContext (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:25936:14)
    at Parser.parseFunction (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:26887:10)
    at Parser.parseExportDefaultExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:27367:19)
    at Parser.parseExportDefaultExpression (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:22547:18)
    at Parser.parseExport (/Users/tazio/.vscode/extensions/lokalise.i18n-ally-2.12.0/dist/extension.js:27290:31)

Screenshots

@Tazi0 Tazi0 added the bug Something isn't working label Oct 29, 2024
@MaxDev98
Copy link

Can confirm, same issue.
Using the latest i18n ally Version within VS Code.
Debian 12 (Bookworm)

🈶 Activated, v2.12.0

――――――

💼 Workspace root changed to "/home/xxxx/git/xxxx-portal"
🌞 Enabled
🧩 Enabled frameworks: next-intl
🧬 Enabled parsers: json, yaml, json5

📈 Telemetry id: bc235804-be4b-4be5-a969-95ab88bd6cd3
🚀 Initializing loader "/home/xxxx/git/xxxx-portal"
📂 Directory structure: file
🗃 Custom Path Matcher: {locale}.json
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.json$/

📂 Loading locales under /home/xxxx/git/xxxx-portal/frontend/messages
	📑 Loading (de) de.json [1731422554807.9902]
	📑 Loading (en) en.json [1731427341819.9395]

👀 Watching change on /home/xxxx/git/xxxx-portal/frontend/messages
✅ Loading finished


――――――

next-intl Initialisation:

const t = useTranslations("auth.loginPage");
const t_validation = useTranslations("validation");
const t_common = useTranslations("common");

Screenshot 2024-11-13 090622
Screenshot 2024-11-13 090710

header should the: auth.loginPage.header instead of common.header
t_validation and t_common won't be recognized.

Only known workaround is:

const t = useTranslations(); 
[...]
<h1 className="text-3xl font-bold">{t("auth.loginPage.header")}</h1>
<p className="text-balance text-muted-foreground">{t("auth.loginPage.headerDescription")}</p>
[...]
<FormItem>
  <div className="flex items-center">
    <FormLabel>{t("common.password")}</FormLabel>
[...]

@FoundersHQ
Copy link

Facing the same issue

  const t1 = useTranslations('LoginPage');
  const t2 = useTranslations('Common');  

@BilHim
Copy link

BilHim commented Nov 18, 2024

With the current implementation, only the last instance of useTranslation is taken into consideration.
This is a quote from #934

// Find matches of `useTranslations`, later occurences will override
// previous ones (this allows for multiple components with different
// namespaces in the same file).
const regex = /useTranslations\(\s*(['"`](.*?)['"`])?/g
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

4 participants