Skip to content

Commit

Permalink
Add missing translations check
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryFrosty authored Sep 13, 2024
1 parent 07281fa commit 82b7664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/backend/Language.hx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ class Language
// More optimized for file loading
inline public static function getFileTranslation(key:String)
{
#if TRANSLATIONS_ALLOWED
var str:String = phrases.get(key.trim().toLowerCase());
if(str != null) key = str;
#end
return key;
}

Expand Down

0 comments on commit 82b7664

Please sign in to comment.