Hi,

It would be really useful if tokens is provided by the module that gives the parent language. Example:

- [language:parent:direction]
- [language:parent:domain]
- [language:parent:langcode]
- [language:parent:name]
- [language:parent:prefix]

Comments

Mohammed J. Razem created an issue. See original summary.

james.williams’s picture

That is a good idea, I agree. Patches welcome!

james.williams’s picture

Status: Active » Postponed
Related issues: +#2863200: Current interface language token (D8)

That said, token module itself doesn't support tokens for the current language yet, so I think we would need to depend on that, or the https://www.drupal.org/project/token_language module. We should also ensure to follow whatever patterns/conventions they use.

So, patches still welcome, but contribution efforts should probably be focussed on this token issue first: #2863200: Current interface language token (D8).