Magento2 多言語に対応する
の編集
https://yassu.jp/pukiwiki/index.php?Magento2+%C2%BF%B8%C0%B8%EC%A4%CB%C2%D0%B1%FE%A4%B9%A4%EB
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
(no template pages)
[[Magentoめも]] いくつか方法はあるようです。~ http://inchoo.net/magento-2/magento-2-create-multilanguage-store/ Magento2はインストール直後は英語のみですが、フロント側を多言語に対応してみます。 まずは以下から日本語のパッケージを入れてみます。 https://www.mageplaza.com/kb/magento-2-language-pack/ composerが必要になります。 $ composer.phar require mageplaza/magento-2-japanese-language-pack:dev-master UsernameとPasswordを求められますが、Magento MarketplaceのPublic KeyとPrivate Keyを入力することになります。~ https://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html $ php bin/magento setup:static-content:deploy ja_JP $ php bin/magento cache:flush インストール先は vendor/mageplaza/magento-2-japanese-language-pack になります。~ STORES - Configuration - GeneralにてLocale OptionsのLocaleをJapanese(Japan)を選択、Country OptionsのDefault CountryをJapanへすることで日本語表示に切り替えることができます。 言語切り替えはStore Viewを複数作成し、そのStore Viewに各言語を紐付けるイメージです。たぶん。 STORES - All Stores にて Default Store View を選択し、Nameを日本語に変更 Create Store View にて以下の設定でViewを作成します。 |Store|Main Website Store| |Name|English| |Code|en_us| |Status|Enabled| |Sort Order|1| STORES - ConfigurationにてStore ViewをEnglishに切り替え、~ General - Locale Options のLocaleにてEnglish(United States)を選択。 これでキャッシュをクリアすると、日本語とEnglishの切り替えが可能となります。
タイムスタンプを変更しない
[[Magentoめも]] いくつか方法はあるようです。~ http://inchoo.net/magento-2/magento-2-create-multilanguage-store/ Magento2はインストール直後は英語のみですが、フロント側を多言語に対応してみます。 まずは以下から日本語のパッケージを入れてみます。 https://www.mageplaza.com/kb/magento-2-language-pack/ composerが必要になります。 $ composer.phar require mageplaza/magento-2-japanese-language-pack:dev-master UsernameとPasswordを求められますが、Magento MarketplaceのPublic KeyとPrivate Keyを入力することになります。~ https://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html $ php bin/magento setup:static-content:deploy ja_JP $ php bin/magento cache:flush インストール先は vendor/mageplaza/magento-2-japanese-language-pack になります。~ STORES - Configuration - GeneralにてLocale OptionsのLocaleをJapanese(Japan)を選択、Country OptionsのDefault CountryをJapanへすることで日本語表示に切り替えることができます。 言語切り替えはStore Viewを複数作成し、そのStore Viewに各言語を紐付けるイメージです。たぶん。 STORES - All Stores にて Default Store View を選択し、Nameを日本語に変更 Create Store View にて以下の設定でViewを作成します。 |Store|Main Website Store| |Name|English| |Code|en_us| |Status|Enabled| |Sort Order|1| STORES - ConfigurationにてStore ViewをEnglishに切り替え、~ General - Locale Options のLocaleにてEnglish(United States)を選択。 これでキャッシュをクリアすると、日本語とEnglishの切り替えが可能となります。
テキスト整形のルールを表示する