Skip to content

Commit

Permalink
Merge pull request #1438 from ghiscoding/chore/localization-docs
Browse files Browse the repository at this point in the history
docs: improve translation docs
  • Loading branch information
ghiscoding committed Jul 9, 2024
2 parents 16ab002 + 1020f0b commit 076d8c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions docs/TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@
## Slick Grid/DataView Objects
* [Slick Grid/DataView Objects](slick-grid-dataview-objects/slickgrid-dataview-objects.md)

## Localization

* [with Custom Locales](localization/Localization-with-Custom-Locales.md)
* [with ngx-translate](localization/Localization-with-ngx-translate.md)
* [Component Sample](localization/Localization---Component-Sample.md)

## Testing

* [Testing Patterns](testing/testing-patterns.md)

## Grid Functionalities

* [Auto-Resize / Resizer Service](grid-functionalities/Grid-Auto-Resize.md)
Expand All @@ -76,6 +66,16 @@
* [Row Based Editing Plugin](grid-functionalities/Row-based-edit.md)
* [FAQ](grid-functionalities/FAQ.md)

## Developer Guides

* [CSP Compliance](developer-guides/csp-compliance.md)

## Localization

* [with Custom Locales](localization/Localization-with-Custom-Locales.md)
* [with ngx-translate](localization/Localization-with-ngx-translate.md)
* [Component Sample](localization/Localization---Component-Sample.md)

## Backend Services

* [Custom Backend Service](backend-services/Custom-Backend-Service.md)
Expand All @@ -86,9 +86,9 @@
* [Pagination Schema](backend-services/graphql/GraphQL-Pagination.md)
* [Sorting Schema](backend-services/graphql/GraphQL-Sorting.md)

## Developer Guides
## Testing

* [CSP Compliance](developer-guides/csp-compliance.md)
* [Testing Patterns](testing/testing-patterns.md)

## Migrations

Expand Down
2 changes: 1 addition & 1 deletion docs/localization/Localization-with-Custom-Locales.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ There are 2 ways of using and defining Custom Locales, see below on how to achie
English is the default, if that is the locale you want to use then there's nothing to do, move along...

#### Any other Locales (not English)
To use any other Locales, you will need to create a TypeScript file of all the Locale Texts required for the library to work properly (if you forget to define a locale text, it will simply show up in English). For example, if we define a French Locale, it would look like this (for the complete list of required field take a look at the default [English Locale](https://github.com/ghiscoding/angular-slickgrid-demos/blob/master/bootstrap3-demo-with-locales/src/app/locales/en.ts))
To use any other Locales, you will need to create a TypeScript file of all the Locale Texts required for the library to work properly (if you forget to define a locale text, it will simply show up in English). For example, if we define a French Locale, it would look like this (for the complete list of required field take a look at the default [English Locale](https://github.com/ghiscoding/angular-slickgrid-demos/blob/master/bootstrap5-demo-with-locales/src/app/locales/en.ts))
```ts
// localeFrench.ts or fr.ts
export const localeFrench = {
Expand Down

0 comments on commit 076d8c2

Please sign in to comment.