|
|
@ -25,7 +25,7 @@ export async function fetchTranslations(): Promise<boolean> {
|
|
|
|
|
|
|
|
|
|
|
|
export default function translate(
|
|
|
|
export default function translate(
|
|
|
|
key: string,
|
|
|
|
key: string,
|
|
|
|
tokens?: Record<string, string | number | boolean>
|
|
|
|
tokens: Record<string, string | number | boolean> = { appName: 'Readarr' }
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
const translation = translations[key] || key;
|
|
|
|
const translation = translations[key] || key;
|
|
|
|
|
|
|
|
|
|
|
|