All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtransc.text.JTranscLocale Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
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