Skip to content

Instantly share code, notes, and snippets.

View theodesp's full-sized avatar
🦄
Jumping over Rainbows...

Theofanis Despoudis theodesp

🦄
Jumping over Rainbows...
View GitHub Profile
translationKey: "my-frst-post"
[languages]
[languages.en]
contentDir = "content/english"
title = "My New Hugo i18n Site"
languageName = "English"
weight = 1
[languages.gr]
contentDir = "content/greek"
title = "Η Νεα μου Ιστιοσελιδα"
languageName = "Greek"
mkdir i18n &&
cd i18n &&
touch en.toml &&
toucn gr.toml
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
href="/" class="card home-card" style="background-image: url({{if isset .Site.Params "homeimg"}} {{ .Site.Params.homeimg | safeCSS }} {{ else }} /img/grey-cloud.jpg {{ end }})" rel="bookmark" >
{{ T "home" }}
</a>
[home]
other = "Home"
<div>
<ul class="language-list">
{{ range $.Site.Home.AllTranslations }}
<li><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
{{ end }}
</ul>
</div>
mv phraseapp_macosx_amd64 phraseapp
chmod +x phraseapp
➜ ./phraseapp
account show <ID> Get details on a single account.
accounts list List all accounts the current user has access to.
authorization create Create a new authorization.
...
➜ ./phraseapp init
PhraseApp.com API Client Setup
Please enter your API access token (you can generate one in your profile at phraseapp.com):
<token>
Loading projects...
1: Test (Id: 8fa47c48c3ba80aebe255e99651de3e4)
2: WP POT File Test (Id: 5ed97cfde5a2ac8bf4fbc6edd82eb4a9)
3: Handmade's Tale (Id: 40fe26fda781e98df0134cf91e02aea4)
4: Create new project
> 1
1: yml - Ruby/Rails YAML, file extension: yml
2: gettext - Gettext, file extension: po
3: gettext_template - Gettext Template, file extension: pot
4: gettext_mo - Gettext Mo, file extension: mo
5: xml - Android Strings, file extension: xml
6: strings - iOS Localizable Strings, file extension: strings
7: stringsdict - iOS Localizable Stringsdict, file extension: stringsdict
8: xlf - XLIFF, file extension: xlf
9: qph - Qt Phrase Book, file extension: qph
10: ts - Qt Translation Source, file extension: ts