Skip to content

Commit

Permalink
refactor: migrate source language to english
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed May 2, 2023
1 parent e65b7d2 commit e06ffaf
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 196 deletions.
26 changes: 0 additions & 26 deletions src/i18n/de/hitokoto.yml

This file was deleted.

14 changes: 10 additions & 4 deletions src/i18n/en/hitokoto.yml → src/i18n/en-US/hitokoto.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
commands:
hitokoto:
description: Random Hitokoto

usage: |
Get a random sentence from hitokoto.cn.
Get a random Chinese sentence from hitokoto.cn.
example: |
hitokoto Get a random sentence
hitokoto -l 2 Get a random sentence with at least 2 characters
options:
type: Specify the type of Hitokoto sentences. If you want to specify multiple types, you can use comma "," to separate different type names. Enter "hitokoto.types" to check available types.
min-length: Specify the minimum length of Hitokoto sentences.
max-length: Specify the minimum length of Hitokoto sentences.

messages:
invalid_type: The specified type {0} does not exist. Please enter hitokoto.types to check available types.
min_length_gt_max_length: The minimum length cannot be greater than the maximum length.
service_unavailable: Service is not available at this moment, please try again later
unknown_error: "An unknown error occurred. Please try again.\n{message}"
timeout: Request timed out. Please try again later.
#the format that the bot would generate, {hitokoto} is the sentence that hitokoto API returns,
#more placeholders can be found on:
#https://developer.hitokoto.cn/sentence/#%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F
# the format that the bot would generate, {hitokoto} is the sentence that hitokoto API returns,
# more placeholders can be found on:
# https://developer.hitokoto.cn/sentence/#%E8%BF%94%E5%9B%9E%E6%A0%BC%E5%BC%8F
format: "\"{hitokoto}\"\n\\t\\t\\t\\t{from}, {from_who}"

hitokoto.types:
description: List of types available in Hitokoto

messages:
list: "You can specify one or more of the following types, using commas \",\" to separate them:\n{0}"
26 changes: 0 additions & 26 deletions src/i18n/es/hitokoto.yml

This file was deleted.

26 changes: 0 additions & 26 deletions src/i18n/fr/hitokoto.yml

This file was deleted.

13 changes: 3 additions & 10 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
export default {
'de': require('./de/hitokoto.yml'),
'en': require('./en/hitokoto.yml'),
'es': require('./es/hitokoto.yml'),
'fr': require('./fr/hitokoto.yml'),
'ja': require('./ja/hitokoto.yml'),
'ko': require('./ko/hitokoto.yml'),
'ru': require('./ru/hitokoto.yml'),
'zh': require('./zh/hitokoto.yml'),
'zh-cn': require('./zh/hitokoto.yml'),
'zh-tw': require('./zh-tw/hitokoto.yml'),
'en': require('./en-US/hitokoto.yml'),
'zh': require('./zh-CN/hitokoto.yml'),
'zh-cn': require('./zh-CN/hitokoto.yml'),
}
26 changes: 0 additions & 26 deletions src/i18n/ja/hitokoto.yml

This file was deleted.

26 changes: 0 additions & 26 deletions src/i18n/ko/hitokoto.yml

This file was deleted.

26 changes: 0 additions & 26 deletions src/i18n/ru/hitokoto.yml

This file was deleted.

File renamed without changes.
26 changes: 0 additions & 26 deletions src/i18n/zh-tw/hitokoto.yml

This file was deleted.

0 comments on commit e06ffaf

Please sign in to comment.