최근 검색
최근 검색 없음

Birita Christiansen
가입한 날짜: 2021년 4월 16일
·
마지막 활동: 2022년 2월 01일
팔로잉
0
팔로워
0
총 활동 수
1
투표 수
0
플랜 수
0
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Birita Christiansen
Birita Christiansen님이 에 댓글을 입력함
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();
});
댓글 보기 · 2017년 1월 19일에 게시됨 · Birita Christiansen
0
팔로워
0
투표 수
0
댓글