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
+110 -3
View File
@@ -1,8 +1,26 @@
window.localisation.pi = {
confirm: 'Aye',
server: 'Cap`n',
theme: 'Theme',
funding: 'Funding',
users: 'Buccaneers',
apps: 'Arrrrplications',
channels: 'Channels',
transactions: 'Pirate Transactions and loot',
dashboard: 'Arrr-board',
node: 'Node',
total_capacity: 'Total Capacity',
avg_channel_size: 'Avg. Channel Size',
biggest_channel_size: 'Largest Bilge Size',
smallest_channel_size: 'Smallest Channel Size',
number_of_channels: "Nummer o' Channels",
active_channels: 'Active Channels',
connect_peer: 'Connect Peer',
connect: 'Connect',
open_channel: 'Open Channel',
open: 'Open yer hatches',
close_channel: 'Shut Yer Gob Channel',
close: 'Batten down the hatches, we be closin',
restart: 'Arr, restart Cap`n',
save: 'Bury Treasure',
save_tooltip: 'Bury yer changes, matey',
@@ -29,12 +47,19 @@ window.localisation.pi = {
'This whole chest will be scuttled, the booty will be UNRECOVERABLE. Aye, be warned!',
rename_wallet: 'Rename the Chest, me hearty',
update_name: 'Update name like a captain',
fiat_tracking: "Trackin' o' the treasure",
currency: "Curr'nsey",
update_currency: 'Update doubloons',
press_to_claim: 'Press to claim gold doubloons, matey!',
donate: 'Donate like a true pirate!',
view_github: 'View on GitHub and find treasures',
voidwallet_active: 'VoidWallet be active! Payments disabled',
use_with_caution:
'USE WITH CAUTION - %{name} chest be still in BETA. Aye, be careful!',
service_fee: 'Service fee: %{amount} % per transaction',
service_fee_max: 'Service fee: %{amount} % per transaction (max %{max} sats)',
service_fee_tooltip:
"Service fee charged by the LNbits server admin per goin' transaction",
toggle_darkmode: 'Toggle Dark Mode, arr!',
view_swagger_docs: 'View LNbits Swagger API docs and learn the secrets',
api_docs: 'API docs for the scallywags',
@@ -42,15 +67,16 @@ window.localisation.pi = {
runs_on: 'Runs on, matey',
credit_hint: 'Press Enter to credit account and make it richer',
credit_label: '%{denomination} to credit, arr!',
paste: 'Stow',
paste_from_clipboard: 'Paste from clipboard',
paste_request: 'Paste Request and find treasures',
create_invoice: 'Create Booty Request and get rich, me hearties!',
camera_tooltip: 'Use spyglass to scan a booty/QR, arr!',
export_csv: 'Export to CSV and keep track of the booty',
transactions: 'Pirate Transactions and loot',
chart_tooltip: 'Show ye chart, me hearty',
pending: 'Pendin like a ship at anchor',
copy_invoice: 'Copy booty request, arrr',
close: 'Batten down the hatches, we be closin',
withdraw_from: 'Withdraw from',
cancel: 'Abandon ship! We be retreatin',
scan: 'Avast! Scan me beauty, arrr',
read: 'Read it, if ye dare',
@@ -80,12 +106,93 @@ window.localisation.pi = {
no_extensions:
"Ye don't have any extensions installed, ye scallywag :(. Where be yer loot?",
created: 'Created like a legend, savvy',
search_extensions: 'Search fer extensions',
warning: 'Avast',
repository: 'Repository',
confirm_continue: "Be ye sure ye want t' proceed?",
manage_extension_details: 'Install/uninstall extension',
install: 'Set sail',
uninstall: 'Avaast',
drop_db: 'Scuttle Data',
enable: 'Enable',
enable_extension_details: "Enable extension fer th' current user",
disable: "Disablin'",
installed: 'Installed',
activated: 'Activated',
deactivated: 'Deactivated',
release_notes: 'Release Notes',
activate_extension_details: 'Make extension available/unavailable fer users',
featured: 'Featured',
all: 'Arr',
only_admins_can_install: '(Only admin accounts can install extensions)',
admin_only: "Cap'n Only",
new_version: 'New Version',
extension_depends_on: 'Depends on:',
extension_rating_soon: "Ratings a'comin' soon",
extension_installed_version: 'Installed version',
extension_uninstall_warning:
"Ye be about t' remove th' extension fer all hands.",
uninstall_confirm: 'Aye, Uninstall',
extension_db_drop_info:
"All data fer th' extension will be permanently deleted. There be no way to undo this operation!",
extension_db_drop_warning:
"Ye be about to scuttle all data fer th' extension. Please scribble th' extension name to continue:",
extension_min_lnbits_version:
"This release be needin' at least LNbits version",
payment_hash: 'Payment Hash like a treasure map, arrr',
fee: 'Fee like a toll to cross a strait, matey',
amount: 'Amount of doubloons, arrr',
tag: 'Tag',
unit: 'Unit of measurement like a fathom, ye buccaneer',
description: 'Description like a tale of adventure, arrr',
expiry: 'Expiry like the food on a ship, ye landlubber',
webhook: 'Webhook like a fishing line, arrr',
payment_proof: 'Payment Proof like a seal of authenticity, argh'
payment_proof: 'Payment Proof like a seal of authenticity, argh',
update_available: 'Update %{version} available, me matey!',
latest_update: "Ye be on th' latest version %{version}.",
notifications: 'Notificashuns',
no_notifications: "No noticin's",
notifications_disabled: 'LNbits status notifications be disabled, arr!',
enable_notifications: 'Enable Notifications',
enable_notifications_desc:
"If ye be allowin' it, it'll be fetchin' the latest LNbits Status updates, like security incidents and updates.",
enable_killswitch: "Enabl' th' Killswitch",
enable_killswitch_desc:
"If enabled it'll be changin' yer fundin' source to VoidWallet automatically if LNbits sends out a killswitch signal, ye will. Ye'll be needin' t' enable manually after an update, arr.",
killswitch_interval: 'Killswitch Interval',
killswitch_interval_desc:
"How oft th' background task should be checkin' fer th' LNBits killswitch signal from th' status source (in minutes).",
enable_watchdog: 'Enable Seadog',
enable_watchdog_desc:
"If enabled, it will swap yer treasure source t' VoidWallet on its own if yer balance be lower than th' LNbits balance. Ye'll need t' enable by hand after an update.",
watchdog_interval: 'Seadog Interval',
watchdog_interval_desc:
"How oft th' background task should be checkin' fer a killswitch signal in th' seadog delta [node_balance - lnbits_balance] (in minutes), arr.",
watchdog_delta: 'Seadog Delta',
watchdog_delta_desc:
"Limit afore killswitch changes fundin' source to VoidWallet [lnbits_balance - node_balance > delta]",
status: 'Status',
notification_source: 'Notification Source',
notification_source_label:
"Source URL (only use th' official LNbits status source, and sources ye can trust)",
more: "Arr, 'tis more.",
releases: 'Releases',
killswitch: 'Killswitch',
watchdog: 'Seadog',
server_logs: 'Server Logs',
ip_blocker: 'IP Blockar',
security: 'Securrrity',
security_tools: 'Securrrity tools',
block_access_hint: 'Block access by IP',
allow_access_hint: 'Grant permission by IP (will override barred IPs)',
enter_ip: 'Enter IP and hit enter',
rate_limiter: 'Rate Limiter',
number_of_requests: "Number o' requests",
time_unit: "time bein'",
minute: 'minnit',
second: 'second',
hour: 'hour',
disable_server_log: "Disabl' %{Server} Log",
enable_server_log: 'Enable Server Log',
coming_soon: "Feature comin' soon"
}