tolgee / tolgee-cli

The Tolgee CLI
MIT License
15 stars 11 forks source link

Push add wrong namespace #95

Open cipami opened 2 months ago

cipami commented 2 months ago

When running push command it adds namespace from path and ignores the configuration

"push": {
    "files": [
      {
        "path": "./i18n/general/en.json",
        "language": "en",
        "namespace": "general"
      },
      {
        "path": "./i18n/general/cs.json",
        "language": "cs",
        "namespace": "general"
      }
    ],
    "forceMode": "OVERRIDE"
  }

After running this i end up with all keys in i18n namespace msedge_c9q5zDZGFp

stepan662 commented 2 months ago

Hey, I've tested your case and I found out that forceMode is not applied correctly when in config. (fix here: https://github.com/tolgee/tolgee-cli/pull/96)

However I was not able to replicate the error with incorrect namespaces. Is it possible that the bug is somehow connected to your bug?