Skip to content

Commit f340cd6

Browse files
committed
fix language setting and yaml format
1 parent 882f3e5 commit f340cd6

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
db_path:
1111
process.env.RSSBOT_DB_PATH ||
1212
path.join(__dirname, '../data/database.db'),
13-
lang: process.env.RSSBOT_lang || 'zh-cn',
13+
lang: process.env.RSSBOT_LANG || 'zh-cn',
1414
item_num: process.env.RSSBOT_ITEM_NUM || 10,
1515
fetch_gap: process.env.RSSBOT_FETCH_GAP || '5m',
1616
notify_error_count: process.env.NOTIFY_ERR_COUNT || 5,

i18n/en.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ FETCH_ERROR: Fetch error
55
ALREADY_SUB: You have already subscribe this feed
66
DB_ERROR: SQL error
77
DID_NOT_SUB: You haven't subscribed this feed
8-
SUB_USAGE: USAGE: /sub <RSS URL>
9-
UNSUB_USAGE: USAGE: /unsub <RSS URL>
8+
SUB_USAGE: 'USAGE: /sub <RSS URL>'
9+
UNSUB_USAGE: 'USAGE: /unsub <RSS URL>'
1010
ADMIN_ONLY: Only enable for admins
11-
UNSUBTHIS_USAGE: USAGE:/unsubthis Reply the message from the feed you want to unsubscribe directly
11+
UNSUBTHIS_USAGE: 'USAGE:/unsubthis Reply the message from the feed you want to unsubscribe directly'
1212
SAME_NAME: There is a feed has the same title,Please use /unsub
1313
PROCESSING: Processing, please wait for a while
1414
SUB_SUCCESS: Subscribe successfully
@@ -21,12 +21,12 @@ NETWORK_ERROR: Network error
2121
IMPORT_SUCCESS: Import successfully
2222
FILESYSTEM_ERROR: Filesystem error
2323
UNSUB_ALL_SUCCESS: Unubscribe all successfully
24-
EXPORT: USAGE: USAGE: /export Export subscriptions to opml format
24+
EXPORT: 'USAGE: /export Export subscriptions to opml format'
2525
SEND_FILE_IMPORT: Send a opml file to import subscriptions
26-
RSS_USAGE: USAGE: /rss Output subscriptions list add "raw" to show links
26+
RSS_USAGE: 'USAGE: /rss Output subscriptions list add "raw" to show links'
2727
VIEW_ALL_USAGE: /viewall View all subscriptions and number of subscribers add raw to show links
28-
USB_ALL_USAGE: USAGE: /allunsub unsubscribe all feeds
29-
IMPORT_USAGE: USAGE: /import send opml directly in private chat or reply to this message
28+
USB_ALL_USAGE: 'USAGE: /allunsub unsubscribe all feeds'
29+
IMPORT_USAGE: 'USAGE /import send opml directly in private chat or reply to this message'
3030
WELCOME: Welcome to [NodeRSSBot](https://github.com/fengkx/NodeRSSBot)
3131
CONFIRM: Do you want to continue the operation
3232
PRIVATE_CHAT_ONLY: Can only be used in private chat

i18n/es-es.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ FETCH_ERROR: Error de recuperación
55
ALREADY_SUB: Ya te has suscrito a este feed
66
DB_ERROR: Error en la SQL
77
DID_NOT_SUB: No te has suscrito todavía a este feed
8-
SUB_USAGE: USAGE: /sub <RSS URL>
9-
UNSUB_USAGE: USAGE: /unsub <RSS URL>
8+
SUB_USAGE: 'USAGE: /sub <RSS URL>'
9+
UNSUB_USAGE: 'USAGE: /unsub <RSS URL>'
1010
ADMIN_ONLY: Solo disponible para administradores
11-
UNSUBTHIS_USAGE: USAGE:/unsubthis Responda directamente al mensaje del feed que desea cancelar la suscripción
11+
UNSUBTHIS_USAGE: 'USAGE: /unsubthis Responda directamente al mensaje del feed que desea cancelar la suscripción'
1212
SAME_NAME: Hay un feed con el mismo nombre, por favor cancele la suscripción con /unsub
1313
PROCESSING: Pocesando, espere un momento
1414
SUB_SUCCESS: Suscripción exitosa
@@ -21,12 +21,12 @@ NETWORK_ERROR: Error de red
2121
IMPORT_SUCCESS: Importado con éxito
2222
FILESYSTEM_ERROR: Error del sistema de archivos
2323
UNSUB_ALL_SUCCESS: Cancelada la suscripción a todos los feeds con éxito
24-
EXPORT: USAGE: USAGE: /export Exportar suscripciones a formato OPML
24+
EXPORT: 'USAGE/export Exportar suscripciones a formato OPML'
2525
SEND_FILE_IMPORT: Envía un archivo OPML para importar suscripciones
26-
RSS_USAGE: USAGE: /rss Devuelve la lista de suscripciones; agregue "raw" para mostrar los enlaces
26+
RSS_USAGE: 'USAGE: /rss Devuelve la lista de suscripciones; agregue "raw" para mostrar los enlaces'
2727
VIEW_ALL_USAGE: /viewall Ver todas las suscripciones y el número de suscriptores que tienen agregue "raw" para mostrar los enlaces
28-
USB_ALL_USAGE: USAGE: /allunsub Cancelar la suscripción de todos los feeds
29-
IMPORT_USAGE: USAGE: /import Enviar el archivo OPML directamente a un chat privado o responder a este mensaje
28+
USB_ALL_USAGE: 'USAGE /allunsub Cancelar la suscripción de todos los feeds'
29+
IMPORT_USAGE: 'USAGE /import Enviar el archivo OPML directamente a un chat privado o responder a este mensaje'
3030
WELCOME: Bienvenido a [NodeRSSBot](https://github.com/fengkx/NodeRSSBot)
3131
CONFIRM: ¿Desea continuar con la operación?
3232
PRIVATE_CHAT_ONLY: Sólo se puede utilizar en un chat privado

0 commit comments

Comments
 (0)