Skip to content
Snippets Groups Projects
Commit 6bd987bf authored by Boris's avatar Boris
Browse files

Fix i18n permalinks structure, using redirection plugin

parent a822259f
Branches master
No related tags found
No related merge requests found
......@@ -14,10 +14,10 @@ export default {
},
computed: {
showImages() {
return this.$lang === 'English' ? 'Show images' : 'Afficher les images'
return this.$lang === 'en-US' ? 'Show images' : 'Afficher les images'
},
hideImages() {
return this.$lang === 'English' ? 'Hide images' : 'Masquer les images'
return this.$lang === 'en-US' ? 'Hide images' : 'Masquer les images'
},
},
mounted() {
......@@ -58,4 +58,4 @@ a.toggleImages {
.hide-images img {
display none
}
</style>
\ No newline at end of file
</style>
......@@ -25,16 +25,24 @@ module.exports = {
color: '#3eaf7c',
backgroundColor: '#3eaf7c'
}
]
],
[
'vuepress-plugin-redirect',
{
// provide i18n redirection
// it will automatically redirect `/foo/bar/` to `/:locale/foo/bar/` if exists
locales: true,
},
],
],
locales: {
'/': {
lang: 'English',
'/en/': {
lang: 'en-US',
title: 'Silkaj',
description: 'Powerfull and lightweight CLI for Duniter'
},
'/fr/': {
lang: 'Français',
lang: 'fr-FR',
title: 'Silkaj',
description: 'CLI performant et léger pour Duniter'
}
......@@ -46,7 +54,8 @@ module.exports = {
},
smoothScroll: true,
locales: {
'/': {
'/en/': {
label: 'English',
nav: [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide/' },
......@@ -62,6 +71,7 @@ module.exports = {
]
},
'/fr/': {
label: 'Français',
nav: [
{ text: 'Accueil', link: '/fr/' },
{ text: 'Guide', link: '/fr/guide/' },
......@@ -78,4 +88,4 @@ module.exports = {
}
}
}
}
\ No newline at end of file
}
File moved
......@@ -51,7 +51,7 @@ Create file with directory and name:
```bash
silkaj authfile --file /path/to/custom-authfile
```
![authfile](./images/authfile.png#result)
![authfile](../images/authfile.png#result)
### How to operate with `authfile`
Example of transaction, this command is executed in repertory which contains the `authfile`:
......@@ -84,25 +84,25 @@ silkaj -p g1.presles.fr:443 info
```bash
silkaj id moul
```
![id](./images/id.png#result)
![id](../images/id.png#result)
### Wallet balance
```bash
silkaj balance 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8
```
![balance](./images/balance.png#result)
![balance](../images/balance.png#result)
### Display transactions history
```bash
silkaj history 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8
```
![history](./images/history.png#result)
![history](../images/history.png#result)
#### Display transactions history with issuers (-u)
```bash
silkaj history 78ZwwgpgdH5uLZLbThUQH7LKwPgjMunYfLiCfUCySkM8 -u
```
![id](./images/history-u.png#result)
![id](../images/history-u.png#result)
### Send transaction
```bash
......@@ -111,7 +111,7 @@ silkaj tx --amount XX --output GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP --co
:::tip Info
You will be prompted to confirm sending transaction
:::
![tx-confirm](./images/tx-confirm.png#result)
![tx-confirm](../images/tx-confirm.png#result)
#### Transaction in DU without confirmation (-y)
```bash
......@@ -120,7 +120,7 @@ silkaj tx -y --amountUD XX --output GfKERHnJTYzKhKUma5h1uWhetbA8yHKymhVH2raf2aCP
:::danger Attention
Be careful, you will NOT be prompted! This command is useful for automated transactions in program.
:::
![tx-success](./images/tx-success.png#result)
![tx-success](../images/tx-success.png#result)
#### Transaction with `authfile`
```bash
......@@ -162,7 +162,7 @@ You could automate transaction with a `crontab` on your machine. Example:
```bash
silkaj info
```
![info](./images/info.png#result)
![info](../images/info.png#result)
### Open currency license in your default browser
```bash
......@@ -176,19 +176,19 @@ You will be prompted for language
```bash
silkaj diffi
```
![diffi](./images/diffi.png#result)
![diffi](../images/diffi.png#result)
### Explore the blockchain
```bash
silkaj blocks
```
![blocks](./images/blocks.png#result)
![blocks](../images/blocks.png#result)
#### Detailed view of the blockchain
```bash
silkaj blocks -d
```
![blocks_detailed](./images/blocks_detailed.png#result)
![blocks_detailed](../images/blocks_detailed.png#result)
#### Get last 20 blocs
```bash
......@@ -196,7 +196,7 @@ silkaj blocks 20
# Force detailed view (Compact view happen over 30 blocks)
# silkaj blocks 50 -d
```
![blocks20](./images/blocks20.png#result)
![blocks20](../images/blocks20.png#result)
---
......@@ -206,7 +206,7 @@ silkaj blocks 20
```bash
silkaj wot moul
```
![wot](./images/wot.png#result)
![wot](../images/wot.png#result)
## Submit certification
```bash
......
......@@ -22,6 +22,7 @@
"vuepress-theme-yuu": "^2.2.1"
},
"devDependencies": {
"@vuepress/plugin-pwa": "^1.3.0"
"@vuepress/plugin-pwa": "^1.3.0",
"vuepress-plugin-redirect": "^1.2.3"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment