]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6300 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 27 Sep 2023 06:10:57 +0000 (08:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 27 Sep 2023 06:10:57 +0000 (08:10 +0200)
js/quiz.l10n.js

index c56b7b4f026ecee64c0317c622f4d1a2bbe931fd..19d4be65581eb399526093f5e9be86f19ae581d6 100644 (file)
@@ -6,7 +6,7 @@ function QuizL10n(quiz) {
 
 QuizL10n.prototype = {
     __: function (str) {
-        if (this.quiz.data.l10n[str] !== undefined) {
+        if (this.quiz.data.l10n[str] !== undefined && this.quiz.data.l10n[str] != null) {
             return this.quiz.data.l10n[str];
         }
         return str;