Skip to content

Commit

Permalink
Merge pull request #109 from jermOSS/main
Browse files Browse the repository at this point in the history
Add note field to changes.json
  • Loading branch information
Naviary2 authored Jul 20, 2024
2 parents 2119248 + 2f75177 commit 7d4dd66
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/server/config/setupTranslations.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function removeOutdated(object, changelog) {

let key_strings = [];
for (key of filtered_keys) {
key_strings = key_strings.concat(changelog[key]);
key_strings = key_strings.concat(changelog[key]["changes"]);
}
// Remove duplicate
key_strings = Array.from(new Set(key_strings));
Expand Down
12 changes: 9 additions & 3 deletions translation/changes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"1": ["inital commit of en-US-toml"],
"1.0.1": ["added login.login_button on line 448"]
}
"1": {
"note": "inital commit of en-US-toml",
"changes": []
},
"2": {
"note": "added login.login_button on line 448",
"changes": []
}
}
2 changes: 1 addition & 1 deletion translation/en-US.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "English" # Name of language
direction = "ltr" # Change to "rtl" for right to left languages
version = "1.0.1"
version = "2"

[header]
home = "Home"
Expand Down
2 changes: 1 addition & 1 deletion translation/fr-FR.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Français" # Name of language
direction = "ltr"
version = "1.0.1"
version = "2"

[header]
home = "Accueil"
Expand Down

0 comments on commit 7d4dd66

Please sign in to comment.