207 lines
7.0 KiB
Markdown
207 lines
7.0 KiB
Markdown
## Magento 2 Chinese Language Pack
|
|
|
|
Today I will provide you another helpful document - **Magento 2 Chinese Simplified Language Pack**. With this knowledge base article, you can change the Magento 2 default language to Chinese Simplified Language with only two simple steps. After finishing, all labels on your storefront will be auto-converted to Chinese Simplified quickly.
|
|
|
|
Read more [Magento 2 Chinese Language Pack](https://www.mageplaza.com/magento-2-chinese-language-pack.html)
|
|
|
|

|
|
|
|
## Overview
|
|
|
|
1. Language Package Process
|
|
2. Install Chinese Language Pack
|
|
3. How to active Chinese language pack
|
|
4. How to contribute
|
|
5. Supported Magento versions
|
|
6. Notes
|
|
7. Language package authors
|
|
|
|
## 1. Language Package Process
|
|
|
|
This is status of Chinese Language Pack, you can see how many percentage of this project has been done.
|
|
|
|

|
|
|
|
It is not fully translated? Feel free to contribute:
|
|
- [On Crowdin](https://crowdin.com/project/magento-2): It takes time to approve your contribution by Magento team.
|
|
- [On Github](https://github.com/mageplaza/magento-2-chinese-language-pack/blob/master/HOW-TO-CONTRIBUTE.md): It's faster, our team will approve it after you send pull request.
|
|
|
|
|
|
Find other [language packs here](https://www.mageplaza.com/magento-2-extensions/language-packs.html)
|
|
|
|
## 2. How to Install Chinese Language Pack
|
|
|
|
There are 3 different methods to install this language pack.
|
|
|
|
### ✓ Method #1. Composer method (Recommend)
|
|
Install the Chinese language pack via composer is never easier.
|
|
|
|
**Install Chinese pack**:
|
|
|
|
With Marketing Automation (recommend):
|
|
|
|
```
|
|
composer require mageplaza/magento-2-chinese-language-pack:dev-master mageplaza/module-smtp
|
|
php bin/magento setup:static-content:deploy zh_Hans_CN
|
|
php bin/magento indexer:reindex
|
|
php bin/magento cache:clean
|
|
php bin/magento cache:flush
|
|
```
|
|
|
|
Without Marketing Automation:
|
|
|
|
```
|
|
composer require mageplaza/magento-2-chinese-language-pack:dev-master
|
|
php bin/magento setup:static-content:deploy zh_Hans_CN
|
|
php bin/magento indexer:reindex
|
|
php bin/magento cache:clean
|
|
php bin/magento cache:flush
|
|
```
|
|
|
|
|
|
**Update Chinese pack**:
|
|
|
|
```
|
|
composer update mageplaza/magento-2-chinese-language-pack:dev-master
|
|
php bin/magento setup:static-content:deploy zh_Hans_CN
|
|
php bin/magento indexer:reindex
|
|
php bin/magento cache:clean
|
|
php bin/magento cache:flush
|
|
|
|
```
|
|
|
|
#### Authentication required (If any)
|
|
|
|

|
|
|
|
If you have not added this authentication, you can follow [this guide](http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html)
|
|
|
|
Or use these keys:
|
|
|
|
```
|
|
Public Key: c7af1bfc9352e9c986637eec85ed53af
|
|
Private Key: 17e1b72ea5f0b23e9dbfb1f68dc12b53
|
|
```
|
|
|
|
|
|
|
|
### ✓ Method #2. Copy & Paste method (Not recommended)
|
|
|
|
This method suitable for non-technical people such as merchants. Just download the package then flush cache.
|
|
|
|
**Overview**
|
|
|
|
- Step 1: Download the Chinese language pack
|
|
- Step 2: Unzip Chinese pack
|
|
- Step 3: Flush Magento 2 Cache
|
|
|
|
#### Step 1 : Download the Chinese language pack
|
|
|
|
You can download the language pack from above link
|
|
|
|
#### Step 2: Unzip Chinese pack
|
|
|
|
Unzip the Chinese language pack to Magento 2 root folder. In this guide, we extract to `/var/www/html/`
|
|
Your Magento 2 root folder can be: `/home/account_name/yourstore.com/public_html/`
|
|
|
|
```
|
|
unzip master.zip app/i18n/Mageplaza/
|
|
```
|
|
|
|
Rename folder `magento-2-chinese-language-pack` to `zh_hans_cn`.
|
|
|
|
|
|
You also can unzip locally and upload them to Magento 2 root folder.
|
|
|
|
#### Step 3: Flush Magento 2 Cache
|
|
|
|
Follow this guide to [Flush Cache on your Magento 2 store](https://www.mageplaza.com/kb/how-flush-enable-disable-cache.html)
|
|
|
|
|
|
### ✓ Method #3. Download and install manually (Not recommended)
|
|
|
|
To download and install Chinese pack manually, you have to access to your server via FTP or SFTP.
|
|
|
|
#### Step 1: Download the package
|
|
|
|
- [Download .zip](https://github.com/mageplaza/magento-2-chinese-language-pack/archive/master.zip)
|
|
- [Download .tar.gz](https://github.com/mageplaza/magento-2-chinese-language-pack/tarball/master)
|
|
|
|
#### Step 1: Unzip and upload
|
|
|
|
Unzip the compressed file and upload file `master.zip` into `app/i18n/Mageplaza/zh_hans_cn/`
|
|
|
|
See this screenshot:
|
|
|
|

|
|
|
|
This language pack code is: **zh_hans_cn**
|
|
|
|
#### Step 2: Flush cache
|
|
|
|
Follow this guide to [Flush Cache on your Magento 2 store](https://www.mageplaza.com/kb/how-flush-enable-disable-cache.html)
|
|
|
|
|
|
## 3. How to Active the Chinese language pack
|
|
|
|
Now time to active the Chinese language pack for your Magento 2 store. From Magento 2 admin panel, navigate to `Stores > Configuration > General > Locale Options`
|
|

|
|
|
|
|
|
## 4. How to contribute
|
|
|
|
Contribute to this language at :
|
|
- [On Crowdin](https://crowdin.com/project/magento-2): It takes time to approve your contribution by Magento team.
|
|
- [On Github](https://github.com/mageplaza/magento-2-chinese-language-pack/blob/master/HOW-TO-CONTRIBUTE.md): It's faster, our team will approve it after you send pull request.
|
|
|
|
|
|
## 5. Supported Magento versions
|
|
|
|
It supports all Magento 2 versions include [Magento 2 open-source](https://www.mageplaza.com/download-magento/) (Community), Magento 2 Commerce (EE), Magento Cloud, Magento B2B, Magento MSI.
|
|
|
|
|
|
- Magento v2.0.x
|
|
- Magento v2.1.x
|
|
- Magento v2.2.x
|
|
- Magento v2.3.x
|
|
- Magento v2.4.x
|
|
|
|
|
|
|
|
## 6. Notes
|
|
|
|
- This project automatically updates weekly from Crowdin.
|
|
- Any question, issue please [create a new issue](https://github.com/mageplaza/magento-2-chinese-language-pack/issues/new)
|
|
|
|
## 7. Language package authors
|
|
|
|
- [Magento official translations project for Magento 2](https://crowdin.com/project/magento-2)
|
|
- Magento Community
|
|
- Language packages built by [Mageplaza team](https://www.mageplaza.com/)
|
|
|
|
|
|
## 8. References
|
|
|
|
- https://www.mageplaza.com/magento-2-chinese-language-pack.html
|
|
- https://crowdin.com/project/magento-2
|
|
|
|
|
|
|
|
## Mageplaza extensions on Magento Marketplace, Github
|
|
|
|
|
|
- [Layered Navigation](https://marketplace.magento.com/mageplaza-layered-navigation-m2.html)
|
|
- [One Step Checkout](https://marketplace.magento.com/mageplaza-magento-2-one-step-checkout-extension.html)
|
|
- [SMTP](https://marketplace.magento.com/mageplaza-module-smtp.html) ; [SMTP on Github](https://github.com/mageplaza/magento-2-smtp)
|
|
- [Blog](https://github.com/mageplaza/magento-2-blog)
|
|
- [Security](https://marketplace.magento.com/mageplaza-module-security.html)
|
|
- [Social Login](https://github.com/mageplaza/magento-2-social-login)
|
|
- [SEO](https://github.com/mageplaza/magento-2-seo) ; [SEO on Marketplace](https://marketplace.magento.com/mageplaza-magento-2-seo-extension.html)
|
|
- [SMTP](https://github.com/mageplaza/magento-2-smtp)
|
|
- [Product Slider](https://github.com/mageplaza/magento-2-product-slider)
|
|
- [Banner](https://github.com/mageplaza/magento-2-banner-slider)
|
|
- [Sample Payment Method](https://github.com/mageplaza/magento-2-sample-payment-method)
|
|
|
|
|
|
|