info.bliki.extensions.scribunto.engine.lua.interfaces.Languages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bliki-core Show documentation
Show all versions of bliki-core Show documentation
This is the core project.
The newest version!
package info.bliki.extensions.scribunto.engine.lua.interfaces;
import java.util.HashMap;
import java.util.Map;
final class Languages {
private Map codes = new HashMap<>();
{
codes.put("en", "English");
codes.put("ru", "русский");
}
/**
* @param code string: The code of the language for which to get the name
* @param inLanguage null|string: Code of language in which to return the name (null for autonyms)
* @return string: Language name or empty
*/
public String getName(String code, String inLanguage) {
return codes.get(code);
}
}