First of all, sorry if this is not the best option to tell this. I can't found how to post a normal support ticket in the forum.
We have a website that we are going to translate into several Spanish languages and we have added the Valencian language, which is similar to Catalan, but has some characteristics of the region.
We have added the language without any problem with its custom flag.
The problem appears once you have saved the new language, where it allows you to add the hreflang tag.
As we have already added Catalan previously, we cannot add the hreflang "ca" for Valencian, so it is not correct.
If you check this page, in the codes "2-letter ISO-639-1", both Catalan and Valencian appear with the same code. hidden link
My questions are the following:
Is there any reason that I don't know why all the hreflangs have to be unique?
Is there any way to make this change through a custom function?
It seems like an interesting idea to implement to add custom languages. In this list (see link above) I have seen that there are several languages and dialects sharing the same hreflang. Of course, for automatic translations from the browser it wouldn't be the best translation, but they could detect a translation close to reality.
I am afraid each language code needs to be unique for several reasons. One of them is since language code is used in URL example domain.com/ab/ if you have multiple same URLs it will work, the URL needs to be unique. Another is if it is the same text and the same language code, Google will probably flag it as duplicate content and it might be flagged.
For example, you can use URLs for English speakers in Ireland (en-ie), Canada (en-ca), and Australia (en-au) etc.
Hope this helps.
Regards,
Drazen
The topic ‘[Closed] Feature request – Allow the same hreflang in multiple languages’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.