Skip to content

Commit ab68d0c

Browse files
authored
docs(transloco): ✏️ fix image path (#521)
image path should be handled by useBaseUrl()
1 parent 28c7e94 commit ab68d0c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/docs/installation.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ id: installation
33
title: Installation
44
description: Installation | Transloco Angular i18n
55
---
6+
import useBaseUrl from '@docusaurus/useBaseUrl';
67

78

89
Install the library using Angular CLI:
910
```bash
1011
ng add @ngneat/transloco
1112
```
1213

13-
<img className="gif" src="../img/installation.gif"/>
14+
<img className="gif" src={useBaseUrl('/img/installation.gif')} />
1415

1516
As part of the installation process you'll be presented with questions; Once you answer them, everything you need will automatically be created for you. Let's take a closer look at the generated files:
1617

docs/docs/recipes/google-translate-integration.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Generate Locale Files using Google Translate
33
description: Recipe - Generate Locale Files using Google Translate | Transloco Angular i18n
44
---
5+
import useBaseUrl from '@docusaurus/useBaseUrl';
56

67
Many thanks to [born2net](https://github.com/born2net) for sharing this. [(#261)](https://github.com/ngneat/transloco/issues/261)
78

@@ -196,4 +197,4 @@ const localSource = sourceFile(defaultSourceLang);
196197

197198
## Expected output:
198199

199-
<img class="gif" src="../../img/translation-script-result.png"/>
200+
<img class="gif" src={useBaseUrl('/img/translation-script-result.png')} />

docs/docs/tools/scope-lib-extractor.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Scoped Library Extractor
33
description: Tools - Scoped Library Extractor | Transloco Angular i18n
44
---
5+
import useBaseUrl from '@docusaurus/useBaseUrl';
56

67
There are cases where we need to use translations in our npm libraries (which is common in a monorepo environment). In these cases, we probably want to have the translation files inside the library's folder and ship them together with it.
78

@@ -133,7 +134,7 @@ Now, if we run the script, the following things will happen:
133134

134135
2. It will add the library's translation files to the `.gitignore` ( if you don't want to modify the `.gitignore` use the `--skip-gitignore` flag).
135136

136-
<img class="gif" src="../../img/extractor.gif"/>
137+
<img class="gif" src={useBaseUrl('/img/extractor.gif')} />
137138

138139
### Join Strategies
139140

0 commit comments

Comments
 (0)