]> _ Git - fluidbook-html5.git/commitdiff
wip #2303 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 19 Oct 2018 09:33:26 +0000 (11:33 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 19 Oct 2018 09:33:26 +0000 (11:33 +0200)
js/libs/fluidbook/fluidbook.l10n.js

index 99f4639528a97d1410ec553b96353c2feb941109..9a70d071b7232270a59ed156643ec4c801c208b7 100644 (file)
@@ -101,6 +101,12 @@ FluidbookL10N.prototype = {
             var url = l[2];
             if (force) {
                 var publications = forceLocales[l[0]];
+                if (publications === undefined || publications === null) {
+                    publications = forceLocales[l[0] + '_' + l[1].toLocaleUpperCase()];
+                }
+                if (publications === undefined || publications === null) {
+                    return;
+                }
                 var pubid = publications[0];
 
                 try {