mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
f00c354d0d
BudgetPanel titled its add button with budget.addCategory (since April) and the trip form labelled its cover remove button with common.remove (since August). Neither key was ever in en, and t() returns an unknown key unchanged, so both rendered as the raw key in every language. Both are added to all 27 locales. Locale parity compares the locales with en, never en with the code, so nothing could catch this. client/scripts/i18n-keys.mjs (npm run lint:i18n-keys) now resolves every literal key src/ names against en: the first argument of t(), tHtml() and tr() (both sides of a conditional included), <TransHtml html>, the fallback of translateApiError and any *Key property or prop. A template key, a prefix with the rest appended and the help registry's key builders pass when their fixed parts match an en key; the one template with no fixed part is on an allow-list that names the keys it resolves to, and an entry nothing uses fails. With --unused it lists the en keys nothing reaches, as information only. en is read with shared/scripts/i18n-catalog.mjs, a reader for the locale tables as text that the parity tooling will share. It refuses a value that is not one string literal instead of skipping the key.
82 lines
3.2 KiB
TypeScript
82 lines
3.2 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Simpan',
|
|
'common.showMore': 'Tampilkan lebih banyak',
|
|
'common.showLess': 'Tampilkan lebih sedikit',
|
|
'common.cancel': 'Batal',
|
|
'common.clear': 'Hapus',
|
|
'common.delete': 'Hapus',
|
|
'common.remove': 'Hapus',
|
|
'common.preview': 'Pratinjau',
|
|
'common.edit': 'Sunting',
|
|
'common.add': 'Tambah',
|
|
'common.loading': 'Memuat...',
|
|
'common.import': 'Impor',
|
|
'common.select': 'Pilih',
|
|
'common.selectAll': 'Pilih semua',
|
|
'common.deselectAll': 'Batalkan semua pilihan',
|
|
'common.error': 'Kesalahan',
|
|
'common.success': 'Berhasil',
|
|
'common.unknownError': 'Kesalahan tidak diketahui',
|
|
'common.tooManyAttempts': 'Terlalu banyak percobaan. Coba lagi nanti.',
|
|
'common.back': 'Kembali',
|
|
'common.all': 'Semua',
|
|
'common.close': 'Tutup',
|
|
'common.open': 'Buka',
|
|
'common.upload': 'Unggah',
|
|
'common.search': 'Cari',
|
|
'common.confirm': 'Konfirmasi',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Ya',
|
|
'common.no': 'Tidak',
|
|
'common.or': 'atau',
|
|
'common.none': 'Tidak ada',
|
|
'common.date': 'Tanggal',
|
|
'common.rename': 'Ganti nama',
|
|
'common.discardChanges': 'Buang perubahan',
|
|
'common.discard': 'Buang',
|
|
'common.unsavedTitle': 'Buang perubahan?',
|
|
'common.unsavedMessage': 'Yang kamu masukkan di sini belum disimpan.',
|
|
'common.keepEditing': 'Lanjut mengedit',
|
|
'common.name': 'Nama',
|
|
'common.email': 'Email',
|
|
'common.password': 'Kata sandi',
|
|
'common.saving': 'Menyimpan...',
|
|
'common.justNow': 'baru saja',
|
|
'common.hoursAgo': '{count}j lalu',
|
|
'common.daysAgo': '{count}h lalu',
|
|
'common.saved': 'Tersimpan',
|
|
'common.update': 'Perbarui',
|
|
'common.change': 'Ubah',
|
|
'common.uploading': 'Mengunggah…',
|
|
'common.backToPlanning': 'Kembali ke Perencanaan',
|
|
'common.reset': 'Atur ulang',
|
|
'common.expand': 'Perluas',
|
|
'common.collapse': 'Ciutkan',
|
|
'common.copy': 'Salin',
|
|
'common.copied': 'Disalin',
|
|
'common.datepicker.prevMonth': 'Previous month', // en-fallback
|
|
'common.datepicker.nextMonth': 'Next month', // en-fallback
|
|
'common.datepicker.prevYear': 'Previous year', // en-fallback
|
|
'common.datepicker.nextYear': 'Next year', // en-fallback
|
|
'common.datepicker.prevYears': 'Previous years', // en-fallback
|
|
'common.datepicker.nextYears': 'Next years', // en-fallback
|
|
'common.datepicker.selectMonth': 'Select month', // en-fallback
|
|
'common.datepicker.selectYear': 'Select year', // en-fallback
|
|
'common.datepicker.enterManually': 'Enter date manually', // en-fallback
|
|
'common.datepicker.typeDate': 'Type a date', // en-fallback
|
|
'common.datepicker.dialog': 'Date picker', // en-fallback
|
|
'common.datepicker.clearDate': 'Clear date', // en-fallback
|
|
'common.errorTitle': 'Terjadi kesalahan',
|
|
'common.errorBody': 'Bagian aplikasi ini berhenti bekerja. Data Anda aman.',
|
|
'common.errorPanelTitle': 'Bagian ini tidak dapat ditampilkan',
|
|
'common.errorPanelBody': 'Bagian lain dari halaman masih berfungsi.',
|
|
'common.errorRetry': 'Coba lagi',
|
|
'common.errorReload': 'Muat ulang halaman',
|
|
'common.errorUpdateTitle': 'Versi baru tersedia',
|
|
'common.errorUpdateBody': 'TREK diperbarui saat tab ini terbuka. Muat ulang untuk mendapatkan versi baru.',
|
|
'common.errorPluginTitle': 'Plugin ini tidak dapat ditampilkan',
|
|
};
|
|
export default common;
|