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

node_modules.inflected.src.transliterations.js Maven / Gradle / Ivy

The newest version!
import isFunction from "./util/isFunction";
import Transliterator from "./Transliterator";

export default function transliterations(locale, fn) {
  if (isFunction(locale)) {
    fn = locale;
    locale = null;
  }

  locale = locale || "en";

  if (fn) {
    fn(Transliterator.getInstance(locale));
  } else {
    return Transliterator.getInstance(locale);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy