https://github.com/huckleberry-inc/shopify-app-locales
Locale library for Shopify app
https://github.com/huckleberry-inc/shopify-app-locales
shopify shopify-app shopify-apps
Last synced: 2 months ago
JSON representation
Locale library for Shopify app
- Host: GitHub
- URL: https://github.com/huckleberry-inc/shopify-app-locales
- Owner: huckleberry-inc
- Created: 2020-05-24T13:22:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-28T17:14:09.000Z (almost 4 years ago)
- Last Synced: 2025-03-16T08:02:07.835Z (3 months ago)
- Topics: shopify, shopify-app, shopify-apps
- Language: TypeScript
- Homepage:
- Size: 169 KB
- Stars: 1
- Watchers: 18
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to @huckleberry-inc/shopify-app-locales π

[](#)
> Locale library for Shopify app (Supports Japanese only for now)
### π [Homepage](https://github.com/huckleberry-inc/shopify-app-locales)
## Usage
```ts
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
```sh
yarn add @huckleberry-inc/shopify-app-locales
```## Run tests
```sh
yarn test
```## Author
π€ **Huckleberry, inc. **
## π€ Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/huckleberry-inc/shopify-app-locales/issues).
## Show your support
Give a βοΈ if this project helped you!
***
_This README was generated with β€οΈ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_