Skip to content

Commit 15f586c

Browse files
committed
License, Readme
1 parent 6529f64 commit 15f586c

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SHOPIFY_LOCALE=fr
2+
SHOPIFY_LANGIFY_ID=ly12345
3+
SHOPIFY_STORE=your-store
4+
SHOPIFY_API_KEY=CHANGEME
5+
SHOPIFY_API_PASSWORD=CHANGEME

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2020 213a Studio Créatif, Inc
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Shopify Langify V1 to Native Translations
2+
This tool makes it easy to port over a store's langify v1 data to Shopify's native tooling.
3+
4+
## What it supports
5+
With this tool, you can port over the following resources:
6+
- Products
7+
- Smart Collections
8+
- Custom Collections
9+
- Articles
10+
- Pages
11+
12+
## Setting it all up
13+
You'll first need to [create a private app](https://help.shopify.com/en/manual/apps/private-apps#generate-credentials-from-the-shopify-admin "Read Shopify's documentation on how to create a private app"). It needs write access to the store.
14+
15+
Here are the access scopes that will be required:
16+
- Store content like articles, blogs, comments, pages, and redirects
17+
- Products, variants and collections
18+
19+
Then, you will need to create a `.env` file (copy it from `.env.example`) and fill it out with the right api information you will have gathered from the private apps process.
20+
Alternatively, you can simply pass your store, key, password, langify id and locale through command-line arguments.
21+
22+
## Usage
23+
### Available flags
24+
25+
- `--products` ports over all products' translations
26+
- `--collections` ports over collections' translations
27+
- `--pages` ports over pages' translations
28+
- `--articles` ports over articles' translations
29+
- `--all` will port over everything.
30+
31+
32+
### Examples
33+
34+
- Porting only product: run `yarn start --products`
35+
- Porting only pages: run `yarn start --pages`
36+
- Porting only articles: run `yarn start --articles`
37+
- Porting products & articles: run `yarn start --products --articles`
38+
- Porting products, pages & articles: run `yarn start --products --articles --pages`
39+
- Just port everything you can: run `yarn start --all`
40+
41+
## Issues and bugs
42+
Create a new issue, or issue a new PR on this repo if you've found an issue and would like it fixed.
43+
44+
## License
45+
MIT. Do whatever you like with this stuff ✌️.

0 commit comments

Comments
 (0)