Skip to content

Commit

Permalink
clone locale template
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Nov 21, 2023
1 parent 004592b commit 8bf5a83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/workspace/getLocale.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ module.exports = async (params) => {
// A template exists for the locale key.
if (Object.hasOwn(workspace.templates, params.locale)) {

let template = structuredClone(await getTemplate(workspace.templates[params.locale]))

// Merge the workspace template into workspace.
locale = merge(await getTemplate(workspace.templates[params.locale]), locale)
locale = merge(template, locale)
}

return locale
Expand Down

0 comments on commit 8bf5a83

Please sign in to comment.