{"id":10368,"date":"2021-01-12T17:20:28","date_gmt":"2021-01-12T11:50:28","guid":{"rendered":"https:\/\/magecomp.com\/support\/?post_type=manual_documentation&#038;p=10368"},"modified":"2023-05-26T16:21:18","modified_gmt":"2023-05-26T10:51:18","slug":"add-custom-language-cities-region","status":"publish","type":"manual_documentation","link":"https:\/\/magecomp.com\/support\/docs\/magento-2-city-region-manager\/add-custom-language-cities-region\/","title":{"rendered":"Translate Language Cities and Region in Front-end"},"content":{"rendered":"<p><strong>Step 1:<\/strong> You need to execute the below command in your command prompt.<br \/>\n&#8220;php bin\/magento i18n:collect-phrases &#8211;output=&#8221;app\/code\/Magecomp\/Cityandregionmanager\/i18n\/en_US.csv&#8221; app\/code\/Magecomp\/Cityandregionmanager&#8221;<\/p>\n<p>&#8211;&gt;If your use other langauge to translate word then you need to change file name as per your langauge package.<br \/>\n&#8220;php bin\/magento i18n:collect-phrases &#8211;output=&#8221;app\/code\/Magecomp\/Cityandregionmanager\/i18n\/ar_SA.csv&#8221; app\/code\/Magecomp\/Cityandregionmanager&#8221;<\/p>\n<p><strong>Step 2:<\/strong> After you need to add city,states in your langauge app\/code\/Magecomp\/Cityandregionmanager\/i18n\/en_US.csv file<img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-10369\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/01\/city-and-region-manager-m2-update.png\" alt=\"city and region manager m2 update\" width=\"1071\" height=\"408\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/01\/city-and-region-manager-m2-update.png 1071w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/01\/city-and-region-manager-m2-update-300x114.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/01\/city-and-region-manager-m2-update-1024x390.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/01\/city-and-region-manager-m2-update-768x293.png 768w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/01\/city-and-region-manager-m2-update-600x229.png 600w\" sizes=\"(max-width: 1071px) 100vw, 1071px\" \/><\/p>\n<p><strong>Step 3:<\/strong> After Add Text in the en_US.csv\/ar_SA.csv file you need to run your Magento command.<\/p>\n<p>that&#8217;s it! incase you need any technical assist<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4484,"menu_order":9,"template":"","manualdocumentationcategory":[2376],"manual_doc_tag":[],"class_list":["post-10368","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-m2-city-and-region-manager"],"_links":{"self":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/10368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/10368\/revisions"}],"predecessor-version":[{"id":10371,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/10368\/revisions\/10371"}],"up":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/4484"}],"wp:attachment":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/media?parent=10368"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manualdocumentationcategory?post=10368"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_doc_tag?post=10368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}