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

Unable to get content for 'frontend/****/Theme/nl_NL/Maisondunet_CookieConsent/translation.json' #3

Open
Redouan-Hajjari opened this issue May 15, 2024 · 3 comments

Comments

@Redouan-Hajjari
Copy link

Dear,

I get a error that says Unable to get content for 'frontend/****/Theme/nl_NL/Maisondunet_CookieConsent/translation.json'
could you fix that?

Greetings

@hgati
Copy link
Contributor

hgati commented May 21, 2024

Dear,

I get a error that says Unable to get content for 'frontend/****/Theme/nl_NL/Maisondunet_CookieConsent/translation.json' could you fix that?

Greetings

I've fixed. Use the patch file below.
https://github.com/hgati/magento-cookie-consent/commit/5c4364d67c7b6a3d2728bb9179b967d8658c4e4f.patch

@vberthet
Copy link
Contributor

Hi,

If you declare your translated asset in your theme this should works.

Following the magento convention, you'll have to create a file named :

app/design/frontend/**/Maisondunet_CookieConsent/web/i18n/nl_NL/translation.json

image

@vberthet
Copy link
Contributor

As an improvment we should fallback to en_US when the translation is missing instead of throwing an Exception. (See #4)

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

3 participants