Skip to content

Commit

Permalink
docs: ✏️ update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Sep 20, 2024
1 parent 154f123 commit 4403694
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 17 deletions.
4 changes: 4 additions & 0 deletions docs/docs/getting-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

:::tip
If you already have i18n implemented in your project and are considering migrating to Transloco, be sure to check out our Migration scripts.
:::

Install the library using Angular CLI:

```bash
Expand Down
8 changes: 6 additions & 2 deletions docs/docs/migration/angular.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ description: Angular Migration | Transloco Angular i18n
---

:::info
some manual changes might still be needed after the script ran.
Some manual changes may still be required after the script has executed.
:::

The script will iterate over all your HTML files, build a translation file and will execute the replacements described below.

### Command

`ng g @jsverse/transloco:migrate`
```bash
ng g @jsverse/transloco:migrate
# On an nx workspace
nx g @jsverse/transloco:migrate
```

### The Translation file

Expand Down
8 changes: 6 additions & 2 deletions docs/docs/migration/ngx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ description: ngx-translate Migration | Transloco Angular i18n
---

:::info
some manual changes might still be needed after the script ran.
Some manual changes may still be required after the script has executed.
:::

### Command

`ng g @jsverse/transloco:migrate`
```bash
ng g @jsverse/transloco:migrate
# On an nx workspace
nx g @jsverse/transloco:migrate
```

## What will be done?

Expand Down
26 changes: 13 additions & 13 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ module.exports = {
'getting-started/installation',
'getting-started/angular-compatability',
'getting-started/config-options',
{
type: 'category',
label: 'Migration',
items: ['migration/ngx', 'migration/angular'],
},
],
},
{
Expand Down Expand Up @@ -54,14 +59,6 @@ module.exports = {
type: 'doc',
id: 'hack',
},
{
type: 'doc',
id: 'blog-posts',
},
{
type: 'doc',
id: 'faq',
},
{
type: 'category',
label: 'Tools',
Expand Down Expand Up @@ -101,11 +98,6 @@ module.exports = {
'schematics/component',
],
},
{
type: 'category',
label: 'Migration',
items: ['migration/ngx', 'migration/angular'],
},
{
type: 'category',
label: 'Recipes',
Expand All @@ -115,5 +107,13 @@ module.exports = {
'recipes/google-translate-integration',
],
},
{
type: 'doc',
id: 'blog-posts',
},
{
type: 'doc',
id: 'faq',
},
],
};

0 comments on commit 4403694

Please sign in to comment.