Replies: 2 comments
-
Converted to a discussion as this is not a bug. The setting is referring to the sites’ “Language” settings, where you would have selected “English (United Kingdom)”. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you’re looking for a way to configure the field to always have the same content for your “en-GB” and ”en” sites, select “Custom” for the translation method and use this code for the translation key. {{ object.site.language|split('-')[0] }} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
Description
The propagation settings of fields are confusing.
I have chosen to translate the field for each language. I have 10+ sites on the website. Two of them are: Europe with hreflang
en
en United Kingdom with hrelfangen-uk
. While they are the same language and I want them to have the same content most of the time, Craft considers them as different ones.Steps to reproduce
Expected behavior
To not break anything, I would suggest renaming this translation method to
translate for each language and region
and add a new onetranslate for each language
. The latter method would check the first two letters of the defined hreflang.Craft CMS version
3.7.38
PHP version
8.1.4
Installed plugins and versions
Translations
SeoMatic
Beta Was this translation helpful? Give feedback.
All reactions