com.jtransc.text.JTranscLocale Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt-core Show documentation
Show all versions of jtransc-rt-core Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package com.jtransc.text;
import java.util.Locale;
public class JTranscLocale {
static public int getIntNumberOfDigits(Locale l) {
return 3;
}
static public String getDecimalSeparator(Locale l) {
switch ((l != null) ? l.getLanguage() : "en") {
case "en":
case "ja":
case "zh":
return ".";
default:
return ",";
}
}
static public String getGroupSeparator(Locale l) {
switch ((l != null) ? l.getLanguage() : "en") {
case "fr":
return "\u00a0";
case "en":
case "ja":
case "zh":
return ",";
default:
return ".";
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy