Refactoring: port import flow

This commit is contained in:
Pieter Vander Vennet 2023-06-01 02:52:21 +02:00
parent 8ed4da4e9d
commit ace7caada1
48 changed files with 852 additions and 574 deletions

View file

@ -15,7 +15,7 @@ export default class WithContextLoader {
*
* The found value is interpreted as a tagrendering and fetched/parsed
* */
public tr(key: string, deflt: undefined, translationContext?: string) {
public tr(key: string, deflt?: string, translationContext?: string) {
const v = this._json[key]
if (v === undefined || v === null) {
if (deflt === undefined) {