Skip to content

Commit

Permalink
Fail $l10n missing filltypes in a better way
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Aug 24, 2024
1 parent 593242e commit 181007f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modUtilLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class translator {

i18nObject.entry ??= baseGameLang?.[this.#currentLocale]?.[baseKey]
i18nObject.entry ??= baseGameLang.en?.[baseKey]
i18nObject.entry ??= `~~${baseKey}~~`
i18nObject.entry ??= baseKey.startsWith('filltype_') ? `F:${baseKey.replace('filltype_', '')}` : `~~${baseKey}~~`

return i18nObject
}
Expand Down

0 comments on commit 181007f

Please sign in to comment.