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

translate false option hides non default language values #16

Closed
bnomei opened this issue Oct 27, 2022 · 1 comment
Closed

translate false option hides non default language values #16

bnomei opened this issue Oct 27, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bnomei
Copy link
Owner

bnomei commented Oct 27, 2022

Hello,

I've been experimenting a weird behaviour likely related to this and #6

Basically, fields with the translate: false option stop displaying values in the translated page. This is an issue in the website as well as in the panel, where the fields with the translate: false options appear empty. Since these fields are also required, this basically blocks editors from saving pages in the translated versions...

When I set to debug: false;, the problem dissappear. Also, when I set 'bnomei.boost.cache' => false, the problem also stops. So I guess it must be from the cache?

Of course, not using the translate: false option could solve the issue, as well as making a page model that would overwrite the field values that should not be translated (since they would then be hard-coded within the content files). So far I set off the boost cache, but I'm unsure this should be the best long-term solution as I do see very pleasant performance gains by using the (sqlite) cache!

I've seen a wontfix tag on #6 and was curious about the issue, is there a lot of complexity into making this work with translate: false? I guess it's another layer of complexity on top?

Originally posted by @francois-gm in #11 (comment)

@bnomei bnomei self-assigned this Oct 27, 2022
@bnomei bnomei added the bug Something isn't working label Oct 27, 2022
@bnomei bnomei closed this as completed in 94dbb3a Oct 27, 2022
@francois-gm
Copy link

Thanks, updated and it works :)

bnomei added a commit that referenced this issue Feb 1, 2023
⬆️ upgraded dependencies

closes #16

Signed-off-by: bnomei <b@bnomei.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants