# Translate Language Cities and Region in Front-end

**Step 1:** You need to execute the below command in your command prompt.\
“php bin/magento i18n:collect-phrases –output=”app/code/Magecomp/Cityandregionmanager/i18n/en\_US.csv” app/code/Magecomp/Cityandregionmanager”

–>If your use other langauge to translate word then you need to change file name as per your langauge package.\
“php bin/magento i18n:collect-phrases –output=”app/code/Magecomp/Cityandregionmanager/i18n/ar\_SA.csv” app/code/Magecomp/Cityandregionmanager”

**Step 2:** After you need to add city,states in your langauge app/code/Magecomp/Cityandregionmanager/i18n/en\_US.csv file

<figure><img src="/files/uhvAZtFz4n1JBIoizI3q" alt=""><figcaption></figcaption></figure>

**Step 3:** After Add Text in the en\_US.csv/ar\_SA.csv file you need to run your Magento command.

that’s it! incase you need any technical assist


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magecomp.com/magento-2-city-and-region-manager/translate-language-cities-and-region-in-front-end.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
