0.1.4 β€’ Published 4 years ago

@huckleberry-inc/shopify-app-locales v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Welcome to @huckleberry-inc/shopify-app-locales πŸ‘‹

Version License: MIT build and test

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

0.1.4

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago