-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen_examples.sh
18 lines (15 loc) · 978 Bytes
/
gen_examples.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
rm ./example/README-joke.*.md
ailingo README.md -t en,ja -o '{parent}/example/{stem}-joke.{target}{suffix}' -y -r "Please use as casual language as possible. Please use rude language and emojis. Throw in an unrelated joke from time to time. Familiarity is important, so it doesn't necessarily have to be an accurate translation."
rm ./example/i18n.*.yaml
ailingo ./example/i18n.yaml -t es,ja -o '{parent}/{stem}.{target}{suffix}' -y
rm ./example/i18n.*.toml
ailingo ./example/i18n.yaml -t en,ja -o '{parent}/{stem}.{target}.toml' -y -r "Translate and convert to TOML format. Here is an example of the output format:
[ja.login]
title = "ログイン"
username = "ユーザー名"
password = "パスワード"
button = "ログイン"
forgot_password = "パスワードを忘れましたか?"
"
rm ./example/bad-text.*-correct.md
ailingo ./example/bad-text.ja.md ./example/bad-text.en.md -o '{parent}/{stem}-correct{suffix}' -s ja -y -r "なるべく丁寧かつ客観的に"