add i18n checker and autogenerated AI translations (#2160)

* use translated string

* fix typos in lnbits/static/i18n/{it,jp,nl,we}.js

* add missing strings to cs,en,sk translations

* remove duplicates from lnbits/static/i18n/{cs,en,kr,sk}.js

* add i18n checker

* add i18n ai tool

* add autogenerated AI translations

* add i18n-ai-tool check whether variables in formatted strings are not broken

* fix issues with variables found by the script

* chore: make bundle
This commit is contained in:
Pavol Rusnak
2023-12-12 10:10:51 +00:00
committed by GitHub
parent 9f835f8350
commit cf4d575062
22 changed files with 1485 additions and 84 deletions
+74 -4
View File
@@ -4,6 +4,23 @@ window.localisation.cn = {
theme: '主题',
funding: '资金',
users: '用户',
apps: '应用程序',
channels: '频道',
transactions: '交易记录',
dashboard: '控制面板',
node: '节点',
total_capacity: '总容量',
avg_channel_size: '平均频道大小',
biggest_channel_size: '最大通道大小',
smallest_channel_size: '最小频道尺寸',
number_of_channels: '频道数量',
active_channels: '活跃频道',
connect_peer: '连接对等',
connect: '连接',
open_channel: '打开频道',
open: '打开',
close_channel: '关闭频道',
close: '关闭',
restart: '重新启动服务器',
save: '保存',
save_tooltip: '保存更改',
@@ -28,11 +45,17 @@ window.localisation.cn = {
delete_wallet_desc: '整个钱包将被删除,资金将无法恢复',
rename_wallet: '重命名钱包',
update_name: '更新名称',
fiat_tracking: '菲亚特追踪',
currency: '货币',
update_currency: '更新货币',
press_to_claim: '点击领取比特币',
donate: '捐献',
view_github: '在GitHub上查看',
voidwallet_active: 'VoidWallet 已激活!付款功能已禁用。',
use_with_caution: '请谨慎使用 - %{name}钱包还处于测试版阶段',
service_fee: '服务费:%{amount}% 每笔交易',
service_fee_max: '服务费:%{amount}% 每笔交易(最高 %{max} sats',
service_fee_tooltip: 'LNbits服务器管理员每笔外发交易收取的服务费',
toggle_darkmode: '切换暗黑模式',
view_swagger_docs: '查看 LNbits Swagger API 文档',
api_docs: 'API文档',
@@ -40,15 +63,16 @@ window.localisation.cn = {
runs_on: '可运行在',
credit_hint: '按 Enter 键充值账户',
credit_label: '%{denomination} 充值',
paste: '粘贴',
paste_from_clipboard: '从剪贴板粘贴',
paste_request: '粘贴请求',
create_invoice: '创建发票',
camera_tooltip: '用相机扫描发票/二维码',
export_csv: '导出为CSV',
transactions: '交易记录',
chart_tooltip: '显示图表',
pending: '待处理',
copy_invoice: '复制发票',
close: '关闭',
withdraw_from: '',
cancel: '取消',
scan: '扫描',
read: '读取',
@@ -84,7 +108,6 @@ window.localisation.cn = {
install: '安装',
uninstall: '卸载',
drop_db: '删除数据',
open: '打开',
enable: '启用',
enable_extension_details: '为当前用户启用扩展程序',
disable: '禁用',
@@ -110,9 +133,56 @@ window.localisation.cn = {
payment_hash: '付款哈希',
fee: '费',
amount: '金额',
tag: '标签',
unit: '单位',
description: '详情',
expiry: '过期时间',
webhook: 'Webhook',
payment_proof: '付款证明'
payment_proof: '付款证明',
update_available: '更新%{version}可用!',
latest_update: '您当前使用的是最新版本%{version}。',
notifications: '通知',
no_notifications: '没有通知',
notifications_disabled: 'LNbits状态通知已禁用。',
enable_notifications: '启用通知',
enable_notifications_desc:
'如果启用,它将获取最新的LNbits状态更新,如安全事件和更新。',
enable_killswitch: '启用紧急停止开关',
enable_killswitch_desc:
'如果启用,当LNbits发送终止信号时,系统将自动将您的资金来源更改为VoidWallet。更新后,您将需要手动启用。',
killswitch_interval: 'Killswitch 间隔',
killswitch_interval_desc:
'后台任务应该多久检查一次来自状态源的LNBits断路信号(以分钟为单位)。',
enable_watchdog: '启用看门狗',
enable_watchdog_desc:
'如果启用,当您的余额低于LNbits余额时,系统将自动将您的资金来源更改为VoidWallet。更新后您将需要手动启用。',
watchdog_interval: '看门狗间隔',
watchdog_interval_desc:
'后台任务应该多久检查一次看门狗增量中的 killswitch 信号 [node_balance - lnbits_balance](以分钟计)。',
watchdog_delta: '看门狗德尔塔',
watchdog_delta_desc:
'在触发紧急停止前切换资金来源至VoidWallet的限制 [lnbits_balance - node_balance > delta]',
status: '状态',
notification_source: '通知来源',
notification_source_label: '来源 URL(仅使用官方LNbits状态源和您信任的源)',
more: '更多',
releases: '版本',
killswitch: '杀手锏',
watchdog: '监控程序',
server_logs: '服务器日志',
ip_blocker: 'IP 阻止器',
security: '安全',
security_tools: '安全工具',
block_access_hint: '屏蔽IP访问',
allow_access_hint: '允许通过IP访问(将覆盖被屏蔽的IP)',
enter_ip: '输入IP地址并按回车键',
rate_limiter: '速率限制器',
number_of_requests: '请求次数',
time_unit: '时间单位',
minute: '分钟',
second: '秒',
hour: '小时',
disable_server_log: '禁用服务器日志',
enable_server_log: '启用服务器日志',
coming_soon: '功能即将推出'
}