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

Can not use . in args #39

Open
vladninja opened this issue Feb 2, 2022 · 0 comments
Open

Can not use . in args #39

vladninja opened this issue Feb 2, 2022 · 0 comments

Comments

@vladninja
Copy link

Hi. I am not pretty sure about is it a Storybook or Blast bug, but when I am trying to use dot (.) in args name it throw an error:

You may need an additional loader to handle the result of these loaders.

[0] File was processed with these loaders:
[0]  * ./node_modules/@storybook/server/dist/cjs/server/loader.js
[0] You may need an additional loader to handle the result of these loaders.
[0] |     ],
[0] |     translations: {
[0] >       prefix.key1: "Text1",
[0] |       prefix.key2: "Text2",
[0] |       prefix.key3: "Text3",
[0]     at handleParseError (/var/www/html/vendor/area17/blast/node_modules/webpack/lib/NormalModule.js:941:19)
[0]     at /var/www/html/vendor/area17/blast/node_modules/webpack/lib/NormalModule.js:1045:5
[0]     at processResult (/var/www/html/vendor/area17/blast/node_modules/webpack/lib/NormalModule.js:763:11)
[0]     at /var/www/html/vendor/area17/blast/node_modules/webpack/lib/NormalModule.js:827:5
[0]     at /var/www/html/vendor/area17/blast/node_modules/loader-runner/lib/LoaderRunner.js:406:3
[0]     at iterateNormalLoaders (/var/www/html/vendor/area17/blast/node_modules/loader-runner/lib/LoaderRunner.js:232:10)

In a data folder, it's represented as:

return [
    'translations' => [
        'args' => [
            "prefix.key1" => "Text1",
            "prefix.key2" => "Text2",
            "prefix.key3" => "Text3",
        ]
    ]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant