Skip to content

Commit 804e45f

Browse files
pwizlaweb-flow
andauthored
Fix code fences and a typo in Locales & translations documentation (#2842) (#2868)
* docs(backend): correct TypeScript code fences in TS tabs (controllers, services, middlewares, routes) * docs(bundlers): clarify webpack config example rename and JS/TS filenames * docs(routes): add guidance to prefer fully-qualified handler names in custom routers * docs(api-tokens): add concise security tip (least privilege, rotation, secrets manager) * docs(controllers): add caution about validateQuery/sanitizeQuery/sanitizeOutput when overriding actions * docs(policies): clarify scoped policy folders and fix example path * docs(webhooks): add signature verification tip and fix TS config path * docs(theme-extension): add minimal TS example for theme.light and theme.dark overrides * docs(wysiwyg): add next steps tip (plugin first, custom field for deeper integration) * docs(middlewares): add tip to list registered middlewares (discovery command) * docs(models): add TL;DR with emphasis on content shape and Document Service * docs(locales-translations): fix typo and use proper js/ts fences instead of jsx * Limit PR scope based on title; keep only intended doc(s); revert unrelated files --------- Co-authored-by: GitHub Actions <noreply@github.com>
1 parent d7e1f0e commit 804e45f

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)