Skip to content

Commit

Permalink
Update German, add Dutch credits
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherPillow committed Nov 26, 2023
1 parent cdfd64e commit f5d2382
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ This is yet another rewrite of [XNB2CP-js](https://github.com/anotherpillow/xnb2
## Traslations

- Polish translation by [@amonochromatic](https://discord.com/users/566188247097540620) on Discord.
- Russian translation by [@bezdelnikx](https://github.com/bezdelnikx)
- Russian translation by [@bezdelnikx](https://github.com/bezdelnikx).
- German translation by [@hellevator.](https://discord.com/users/549331533635518484) on Discord.
- Dutch translation by [@ChristanVersteeg](https://github.com/ChristanVersteeg).

### How to translate

Expand Down
2 changes: 0 additions & 2 deletions i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
"name-placeholder-value.input": "An XNB Mod",

"author.label": "Autor",
"author-placeholder-value.input": "UnconcernedApe",

"version.label": "Version",
"version-placeholder-value.input": "1.0.0",

"hidden-submission-value.input": "NICHT KLICKEN",

Expand Down
5 changes: 1 addition & 4 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ function populateFilesTable(files) {

console.log(fileinput)
fileinput.addEventListener('change', function () {
//log all the files and their paths
hideDisablerOverlay();


Array.from(this.files).forEach(file => {
if (!valid_file_types.includes(file.name.split('.').pop())) return;

Expand Down Expand Up @@ -231,7 +229,7 @@ document.body.addEventListener('click', e => {
&& !language_button.contains(e.target)
&& !language_popup.contains(e.target)
&& !language_popup.classList.contains('hidden')
) language_popup.classList.add('hidden')
) language_popup.classList.add('hidden')
})

for (const key of Object.keys(supported_languages)) {
Expand All @@ -251,7 +249,6 @@ for (const key of Object.keys(supported_languages)) {
}

function clean_uid(input) {
//replace spaces with underscores, and anything else that ISNT \w with .
return input.replace(/\s/g, '_').replace(/[^\w]/g, '.');
}

Expand Down
3 changes: 3 additions & 0 deletions src/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const supported_languages = {
'ru': {
"flag": "🇷🇺"
},
'nl': {
"flag": "🇳🇱"
},
}

const lang = navigator.language.split('-')[0]
Expand Down

0 comments on commit f5d2382

Please sign in to comment.