dachcom-digital / pimcore-i18n

Pimcore - i18n Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve redirects when country code is not set in user languages

pascalmoser opened this issue · comments

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

I18n is ignoring a user locale without country code (de), when the same locale ist set in Pimcore with country code (de_CH).

Example 1:

User locales: de_CH, en
Pimcore locales: de, en

Current and expected Behavior: i18n redirects to de (working with PR #63)

Example 2:

User locales: de, en
Pimcore locales: de_CH, en

Current behavior: i18n redirects to en (ignoring de_CH)
Expected behavior: Redirect to de_CH because user preferred language should have more priority.

Fixed with #68.