Recherches récentes
Pas de recherche récente

Adil Malik
Adhésion le 15 nov. 2021
·
Dernière activité le 28 déc. 2023
Suivis
0
Abonnés
0
Activité totale
5
vote
1
Abonnements
2
APERÇU DES ACTIVITÉS
BADGES
ARTICLES
PUBLICATIONS
COMMENTAIRES DE LA COMMUNAUTÉ
COMMENTAIRES SUR L’ARTICLE
APERÇU DES ACTIVITÉS
Dernière activité effectuée par Adil Malik
Adil Malik a ajouté un commentaire,
I figured out that the brackets on the placeholders were causing the issue. The following resolves my request.
"requester_language":"{% if ticket.requester.language% == 'Deutsch'%} DE {% endif %} {% if ticket.requester.language% == 'English'%} EN-US {% endif %} {% if ticket.requester.language% == 'Italiano'%} IT {% endif %} {% if ticket.requester.language% == 'Português (Portugal)'%} PT-BR {% endif %} {% if ticket.requester.language% == 'Português (Brasil)'%} PT-BR {% endif %} {% if ticket.requester.language% == 'Español'%} ES-ES {% endif %} {% if ticket.requester.language% == 'Español (España)'%} ES-ES {% endif %}",
Afficher le commentaire · Publication le 16 nov. 2021 · Adil Malik
0
Abonnés
2
Votes
0
Commentaire
Adil Malik a créé une publication,
I'm looking to send the requester's language to another app as the corresponding language code, i.e. instead of French, I will send fr. However, the following liquid markup sends fr each time, regardless of the language preference set. How can I correct this behavior?
"requester_language":"{% if {{ticket.requester.language}}% == 'français (France)'%} fr {% elsif {{ticket.requester.language}}% == 'Deutsch' %} de {% else %} en-us {% endif %}",
Publication le 15 nov. 2021 · Adil Malik
1
Abonné
3
Votes
3
Commentaires