This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from Cloud-Code-AI/143-font-size-is-very-big-…
…in-code-block minor bug fixes and content changes
- Loading branch information
Showing
15 changed files
with
179 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
author: Akira Team | ||
publishDate: 2024-11-26 | ||
modifiedDate: 2024-11-26 | ||
category: Internationalization | ||
keywords: | ||
- i18n | ||
- Setup | ||
- Languages | ||
--- | ||
|
||
# Setting Up Internationalization | ||
|
||
Configure AkiraDocs for multiple languages with AI-powered translation support. | ||
|
||
## Quick Setup | ||
|
||
### Basic Configuration | ||
Add language settings to `akiradocs.config.json`: | ||
|
||
```json | ||
{ | ||
"localization": { | ||
"defaultLocale": "en", | ||
"fallbackLocale": "en", | ||
"locales": [ | ||
{ | ||
"code": "en", | ||
"name": "English", | ||
"flag": "�🇸" | ||
}, | ||
{ | ||
"code": "es", | ||
"name": "Español", | ||
"flag": "🇪🇸" | ||
}, | ||
{ | ||
"code": "fr", | ||
"name": "Français", | ||
"flag": "🇫🇷" | ||
} | ||
] | ||
}, | ||
"translation": { | ||
"auto_translate": true, | ||
"provider": "anthropic", | ||
"targetLanguages": ["es", "fr", "de"], | ||
"excludedPaths": ["_meta.json"] | ||
} | ||
} | ||
``` | ||
|
||
### Directory Structure | ||
``` | ||
docs/ | ||
├── _contents/ | ||
│ ├── en/ # Source language | ||
│ │ └── docs/ | ||
│ ├── es/ # Spanish translation | ||
│ │ └── docs/ | ||
│ └── fr/ # French translation | ||
│ └── docs/ | ||
``` | ||
|
||
## Configuration Options | ||
|
||
### Language Settings | ||
- `defaultLocale`: Primary content language | ||
- `fallbackLocale`: Fallback when translation missing | ||
- `locales`: Available language configurations | ||
|
||
### Translation Settings | ||
- `auto_translate`: Enable/disable automatic translation | ||
- `provider`: AI translation provider | ||
- `targetLanguages`: Languages to translate into | ||
- `excludedPaths`: Files to skip during translation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.