소스 검색

Update tarteaucitron.lang with the custom text given

Ricci Dorian 7 년 전
부모
커밋
1d97b3fa95
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      tarteaucitron.js

+ 4 - 0
tarteaucitron.js

@@ -223,6 +223,10 @@ var tarteaucitron = {
 
         // Step 2: load language and services
         tarteaucitron.addScript(pathToLang, '', function () {
+
+          if(tarteaucitronCustomText !== undefined){
+            tarteaucitron.lang = AddOrUpdate(tarteaucitron.lang, tarteaucitronCustomText);
+          }
             tarteaucitron.addScript(pathToServices, '', function () {
 
                 var body = document.body,