最近の検索
最近の検索はありません

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
コメント