https://github.com/lednerb/poeditor2hugo
Simple tool to export your POEditor.com translations to your hugo theme
https://github.com/lednerb/poeditor2hugo
Last synced: over 1 year ago
JSON representation
Simple tool to export your POEditor.com translations to your hugo theme
- Host: GitHub
- URL: https://github.com/lednerb/poeditor2hugo
- Owner: Lednerb
- License: mit
- Created: 2018-08-25T15:14:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T04:40:23.000Z (about 7 years ago)
- Last Synced: 2025-01-20T08:34:57.976Z (over 1 year ago)
- Language: Python
- Size: 312 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `$ poeditor2hugo`
[](https://github.com/Lednerb/poeditor2hugo/releases)
[](https://github.com/Lednerb/poeditor2hugo/blob/master/LICENSE.md)
[](https://hub.docker.com/r/lednerb/poeditor2hugo/)
[](https://github.com/Lednerb/poeditor2hugo)
This tool is for all creators of multilingual Hugo themes.
With `poeditor2hugo` you can easily export your [POEditor](https://poeditor.com) translations to your [Hugo](https://gohugo.io) theme.
## Quickstart with docker
If you have Docker installed, you can simply `cd` into your theme's directory and run:
```
docker run --rm -it -v $PWD:/export lednerb/poeditor2hugo
```
If your current user is not in the `docker` group, you maybe have to run this command with `sudo`.
__Fixing permissions:__
If you are on a Linux system, you might want to change the permissions for the language files.
Within your theme directory run the following command to change the permissions:
```
sudo chown -r $USER:$USER i18n/
```
Alternatively, do it in one step or create a bash alias:
`~/.bashrc`
```
alias poeditor2hugo='sudo docker run --rm -it -v $PWD:/export lednerb/poeditor2hugo && sudo chown -R $USER:$USER i18n'
```
You can then run:
```
cd ~/your/hugo/theme
poeditor2hugo
```
### DEMO
[](https://github.com/Lednerb/poeditor2hugo/)