mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
27
themes/minimo/exampleSite/content/docs/translation.md
Normal file
27
themes/minimo/exampleSite/content/docs/translation.md
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
date: 2017-09-27T14:00:00+06:00
|
||||
title: Translation Support
|
||||
authors: ["muniftanjim"]
|
||||
categories:
|
||||
- features
|
||||
tags:
|
||||
- translation
|
||||
- i18n
|
||||
slug: translation
|
||||
---
|
||||
You can translate Minimo in your own language!
|
||||
|
||||
For example, if you want to translate Minimo in Spanish, you will have to add this to your site's config file:
|
||||
|
||||
```toml
|
||||
[languages.es]
|
||||
lang = "es"
|
||||
languageName = "Spanish"
|
||||
weight = 1
|
||||
```
|
||||
|
||||
Then create a folder named **`/i18n/`** in your site's root. And create a file **`/i18n/es.toml`** with the translated strings.
|
||||
|
||||
For reference template you can see the [en.toml](https://github.com/MunifTanjim/minimo/blob/master/i18n/en.toml) file.
|
||||
|
||||
If you want your translation file to be included in Minimo repository, feel free to create a pull request.
|
Reference in New Issue
Block a user