diff --git a/lime/system/Locale.hx b/lime/system/Locale.hx index 3f2f8ae34..535c8687c 100644 --- a/lime/system/Locale.hx +++ b/lime/system/Locale.hx @@ -18,7 +18,7 @@ abstract Locale(String) from String to String { public var region (get, never):String; - private static function __init__ ():Void { + private static function __init ():Void { var locale = null; diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 3922b005f..aedbec2ef 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -3,6 +3,7 @@ import lime.Assets; @:access(lime.app.Application) +@:access(lime.system.Locale) class ApplicationMain { @@ -16,6 +17,8 @@ class ApplicationMain { public static function create ():Void { + lime.system.Locale.__init (); + preloader = new ::if (PRELOADER_NAME != "")::::PRELOADER_NAME::::else::lime.app.Preloader::end:: (); #if !munit