` tag, and add the following `require` statement to the top of the file:
+
```jsx
...
const translate = require("../../server/translate.js").translate;
@@ -58,6 +59,7 @@ const translate = require("../../server/translate.js").translate;
```
You can also include an optional description attribute to give more context to a translator about how to translate the string:
+
```jsx
Rose
@@ -71,6 +73,7 @@ You can also include an optional description attribute to give more context to a
The strings within localized Pages must be extracted and provided to Crowdin.
Add the following script to your `website/package.json` file, if it does not exist already:
+
```json
...
"scripts": {
@@ -119,13 +122,13 @@ Create your translation project on [Crowdin](https://crowdin.com/). You can use
> Ensure in your Crowdin settings, in the Translations section, that "Duplicate Strings" are set to ["Hide - all duplicates will share the same translation"](https://support.crowdin.com/api/create-project/). This setting will ensure that identical strings between versions share a single translation.
-Your project will need a `crowdin.yaml` file generated. If you ran `yarn examples translations` or `npm run examples translations`, this file was created for you on the same level as your `website` diretory.
+Your project will need a `crowdin.yaml` file generated. If you ran `yarn examples translations` or `npm run examples translations`, this file was created for you on the same level as your `website` directory.
> You will need to install the `crowdin` command line interface. Please follow the [installation directions](https://support.crowdin.com/cli-tool/).
-The example below can be automatically generated by the docusaurus cli with the `examples` script. It should be placed in the top level of your project directory to configure how and what files are uploaded/downloaded.
+The example below can be automatically generated by the Docusaurus cli with the `examples` script. It should be placed in the top level of your project directory to configure how and what files are uploaded/downloaded.
-Below is an example crowdin configuration for the respective languages: German, Spanish, French, Japanese, Korean, Behasa Indonesia, Portuguese Brazilian, Chinese Simplified, and Chinese Traditional.
+Below is an example Crowdin configuration for the respective languages: German, Spanish, French, Japanese, Korean, Behasa Indonesia, Portuguese Brazilian, Chinese Simplified, and Chinese Traditional.
```yaml
project_identifier_env: CROWDIN_DOCUSAURUS_PROJECT_ID