泰语如果是您站点的首选语言的话,需要在你的magento2商店中使用这种语言。
请遵循这篇文章,从Magento 2翻译项目获得Magento 2 泰语语言包,并更容易地安装它
其他语言包可在语言包页下载及安装
总览
1.下载语言包
立即下载语言包!
https://github.com/mageplaza/magento-2-thai-language-pack/archive/master.zip
2.翻译数据更新
Crowdin翻译状态更新,数据更新均可以 通过对该项目进行翻译来帮助Magento社区成长。
3.如何安装语言包
方法1 Composer安装
通过composer安装语言包确实非常容易。
线上安装:
composer require mageplaza/magento-2-thai-language-pack:dev-master php bin/magento setup:static-content:deploy th_TH php bin/magento indexer:reindex php bin/magento cache:clean php bin/magento cache:flush
方法2 本地安装
上传上方下载链接中的文件至
app/i18n/Megeplaza/th_th
目录下
执行以下命令进行语言包安装
php bin/magento setup:static-content:deploy th_TH php bin/magento indexer:reindex php bin/magento cache:clean php bin/magento cache:flush
您可能会收到以下消息:
=>转到访问密钥 页面,然后单击 Create A New Access Key
。
或使用以下密钥:
Public Key: c7af1bfc9352e9c986637eec85ed53af Private Key: 17e1b72ea5f0b23e9dbfb1f68dc12b53
更新语言包:
composer update mageplaza/magento-2-thai-language-pack:dev-master php bin/magento setup:static-content:deploy th_TH php bin/magento indexer:reindex php bin/magento cache:clean php bin/magento cache:flush
方法3 通过直接替换语言文件安装语言
通过命令行安装语言包。
将语言文件下载到安装根目录。现在运行以下命令:
wget https://github.com/mageplaza/magento-2-thai-language-pack/raw/master/th_TH.csv php bin/magento i18n:pack -m replace th_TH.csv th_TH php bin/magento setup:static-content:deploy th_TH php bin/magento cache:flush
此操作将创建一个目录语言包,其中包含适合您安装的语言文件的结构。将其复制到您的Magento安装中,翻译应该可以看到的。
注意:附加目录i18n包含在安装中找不到该模块的字符串。可以跳过此文件。
4.如何激活语言包
现在该为您的Magento 2商店激活语言包了。在Magento 2管理面板中,导航至“ Stores > Configuration > General > Locale Options
选择 Thai (Thailand),然后单击
Save Configuration
6.支持的Magento版本
该语言包与Magento版本兼容:
Magento开源(社区)
Magento Commerce(企业)
Magento云
Magento MSI
Magento B2B
Magento版本:
Magento v2.0.x
Magento v2.1.x
Magento v2.2.x
Magento v2.3.x
-
Magento v2.4.x