lang: add patchable notifications to common

This commit is contained in:
Harvey Tindall
2023-06-16 18:29:49 +01:00
parent a1af6e3892
commit 2fc2f1ddb3
3 changed files with 38 additions and 9 deletions
+2 -1
View File
@@ -111,7 +111,8 @@ func (st *Storage) loadLangSetup(filesystems ...fs.FS) error {
if err != nil {
return err
}
st.lang.Common.patchCommon(&lang.Strings, index)
st.lang.Common.patchCommonStrings(&lang.Strings, index)
st.lang.Common.patchCommonNotifications(&lang.Notifications, index)
if fname != "en-us.json" {
if lang.Meta.Fallback != "" {
fallback, ok := st.lang.Setup[lang.Meta.Fallback]