Skip to content

Commit 4fc26e0

Browse files
committed
docs(locales-translations): fix typo and use proper js/ts fences instead of jsx
1 parent 7b79f9b commit 4fc26e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docusaurus/docs/cms/admin-panel-customization/locales-translations.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Configure the admin panel languages by updating the `config.locales` array and o
1717

1818
The Strapi [admin panel](/cms/admin-panel-customization) ships with English strings and supports adding other locales so your editorial team can work in their preferred language. Locales determine which languages appear in the interface, while translations provide the text displayed for each key in a locale.
1919

20-
This guide targets project maintainers customizing the admin experience from the application codebase. All examples modify the configuration exported from `/src/admin/app`file, which Strapi loads when the admin panel builds. You'll learn how to declare additional locales and how to extend Strapi or plugin translations when a locale is missing strings.
20+
This guide targets project maintainers customizing the admin experience from the application codebase. All examples modify the configuration exported from `/src/admin/app` file, which Strapi loads when the admin panel builds. You'll learn how to declare additional locales and how to extend Strapi or plugin translations when a locale is missing strings.
2121

2222
## Defining locales
2323

@@ -26,7 +26,7 @@ To update the list of available locales in the admin panel, set the `config.loca
2626
<Tabs groupId="js-ts">
2727
<TabItem value="js" label="JavaScript">
2828

29-
```jsx title="/src/admin/app.js"
29+
```js title="/src/admin/app.js"
3030
export default {
3131
config: {
3232
locales: ["ru", "zh"],
@@ -39,7 +39,7 @@ export default {
3939

4040
<TabItem value="ts" label="TypeScript">
4141

42-
```jsx title="/src/admin/app.ts"
42+
```ts title="/src/admin/app.ts"
4343
export default {
4444
config: {
4545
locales: ["ru", "zh"],
@@ -89,7 +89,7 @@ export default {
8989

9090
<TabItem value="ts" label="TypeScript">
9191

92-
```js title="/src/admin/app.ts"
92+
```ts title="/src/admin/app.ts"
9393
export default {
9494
config: {
9595
locales: ["fr"],
@@ -136,7 +136,7 @@ export default {
136136

137137
<TabItem value="ts" label="TypeScript">
138138

139-
```js title="/src/admin/app.ts"
139+
```ts title="/src/admin/app.ts"
140140
export default {
141141
config: {
142142
locales: ["fr"],

0 commit comments

Comments
 (0)