@huckleberry-inc/shopify-app-locales
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @huckleberry-inc/shopify-app-locales

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

8.13 kB

Total Files

9

Last publish

Collaborators

  • malanjp
  • camelmasa