escape commas in translation texts

This commit is contained in:
Martti Malmi 2023-02-03 23:51:45 +02:00
parent 4543348f3a
commit 70ceecfc5a
2 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,9 @@ async function translationsToCsv() {
for (let key of translationKeys) {
let row = key;
for (let lang of languages) {
row += '","' + (translations[lang][key] || '').replace(/"/g, '""');
row += '","' + (translations[lang][key] || '')
.replace(/"/g, '""')
.replace(/,/g, '\\,');
}
csv += row + '"\n';
if (key !== translationKeys[translationKeys.length - 1]) {

View File

@ -51,6 +51,7 @@ export default {
"no_contacts_in_list": "No contacts in list",
"no_followers_yet": "Share your profile link so others can follow you:",
"no_notifications_yet": "No notifications yet",
"no_followers_yet_info": "Your posts, replies and likes are only shown to your followers and their network.",
"none": "None",
"note_to_self": "Note to Self",
"nothing": "Nothing",