0.1.4 β’ Published 4 years ago
@huckleberry-inc/shopify-app-locales v0.1.4
Welcome to @huckleberry-inc/shopify-app-locales π
Locale library for Shopify app (Supports Japanese only for now)
π Homepage
Usage
import { Translator } from "@huckleberry-inc/shopify-app-locales"
// Initializes Translator instance
const translator = new Translator("ja")
// Traslates words
translator.provinces.get("Aichi") // ζη₯η
translator.orderStatuses.get("open") // γͺγΌγγ³
translator.financialStatuses.get("authorized") // γͺγΌγ½γͺζΈ
translator.fulfillmentStatuses.get("shipped") // ηΊιζΈ
// Words are Map instance. You can iterate it.
translator.fulfillmentStatuses.forEach(([key, value]) => {
...
})
Array.from(translator.fulfillmentStatuses).map(([key, value]) => {
return { value, key }
}
Install
yarn add @huckleberry-inc/shopify-app-locales
Run tests
yarn test
Author
π€ Huckleberry, inc. dev@huckleberry-inc.com
π€ Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a βοΈ if this project helped you!
This README was generated with β€οΈ by readme-md-generator