Recherches récentes
Pas de recherche récente

Birita Christiansen
Adhésion le 16 avr. 2021
·
Dernière activité le 01 févr. 2022
Suivis
0
Abonnés
0
Activité totale
1
Votes
0
Abonnements
0
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 Birita Christiansen
Birita Christiansen a ajouté un commentaire,
Hi Wes & everyone else
Thanks for this - it was very helpful :-)
We at ChurchDesk also has the issue with supporting different languages. This is how we solved it:
We modified the JS code to identify the language selected on your Zendesk helpdesk. We find this by inspecting the browser in every language.
We added this: var lang = $('html').attr('lang');
So if you have these languages: Danish, English and German, my tags will be: alert-da, alert-de & alers-en-US which I can add to the respected articles for every country.
To use this method, you can copy and replace the code below. Remember to change the "YOURDOMAIN" part.
// MW-Notification Banner
var lang = $('html').attr('lang');
$.get( "https://YOURDOMAIN/api/v2/help_center/articles.json?label_names=alert-" + lang ).done(function( data ) {
$.each(data.articles, function(index,item) {
var style1 = '
'$('.alertbox').append(style1);
});
$('.ns-close').on('click',function(){
$(".alertbox").remove();
});
Afficher le commentaire · Publication le 19 janv. 2017 · Birita Christiansen
0
Abonnés
0
Votes
0
Commentaire