export type Strings = { [ key ] : string ; } ; let defaultStrings = { } ; export function registerDefaultString ( category , strings ) { defaultStrings [ category ] = strings ; } export function getString ( category , name , strings ? ) { let str = ( strings || { } ) [ name ] ; if ( str == null ) { str = defaultStrings [ category ] [ name ] ; } return str ; }