Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/a53cefec51e56314c80751ac033a0652795d80c3
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
9 additions and
11 deletions
@ -25,20 +25,18 @@ export async function fetchTranslations(): Promise<boolean> {
export default function translate (
key : string ,
tokens : Record < string , string | number | boolean > = { appName : 'Lidarr' }
tokens : Record < string , string | number | boolean > = { }
) {
const translation = translations [ key ] || key ;
if ( tokens ) {
// Fallback to the old behaviour for translations not yet updated to use named tokens
Object . values ( tokens ) . forEach ( ( value , index ) = > {
tokens [ index ] = value ;
} ) ;
tokens . appName = 'Lidarr' ;
return translation . replace ( /\{([a-z0-9]+?)\}/gi , ( match , tokenMatch ) = >
String ( tokens [ tokenMatch ] ? ? match )
) ;
}
// Fallback to the old behaviour for translations not yet updated to use named tokens
Object . values ( tokens ) . forEach ( ( value , index ) = > {
tokens [ index ] = value ;
} ) ;
return translation ;
return translation . replace ( /\{([a-z0-9]+?)\}/gi , ( match , tokenMatch ) = >
String ( tokens [ tokenMatch ] ? ? match )
) ;
}