diff --git a/lib/TRACKING_POIS.js b/lib/TRACKING_POIS.js index f8dbba7..8f3ef02 100644 --- a/lib/TRACKING_POIS.js +++ b/lib/TRACKING_POIS.js @@ -14,4 +14,5 @@ export const TRACKING_POIS = { DETECTED_AS_BOT: 'DETECTED_AS_BOT', NOTES_CREATE: 'NOTES_CREATE', USING_LISTING_STATUS: 'USING_LISTING_STATUS', + CHANGE_LANGUAGE: 'CHANGE_LANGUAGE', }; diff --git a/lib/api/routes/userSettingsRoute.js b/lib/api/routes/userSettingsRoute.js index 84838c7..8d2a87e 100644 --- a/lib/api/routes/userSettingsRoute.js +++ b/lib/api/routes/userSettingsRoute.js @@ -179,6 +179,7 @@ export default async function userSettingsPlugin(fastify) { try { upsertSettings({ language }, userId); + await trackPoi(TRACKING_POIS.CHANGE_LANGUAGE); return { success: true }; } catch (error) { logger.error('Error updating language setting', error); diff --git a/ui/src/assets/news/1.jpg b/ui/src/assets/news/1.jpg new file mode 100644 index 0000000..f17dc46 Binary files /dev/null and b/ui/src/assets/news/1.jpg differ diff --git a/ui/src/assets/news/1.png b/ui/src/assets/news/1.png deleted file mode 100644 index c51f637..0000000 Binary files a/ui/src/assets/news/1.png and /dev/null differ diff --git a/ui/src/assets/news/2.png b/ui/src/assets/news/2.png deleted file mode 100644 index 1bbbdac..0000000 Binary files a/ui/src/assets/news/2.png and /dev/null differ diff --git a/ui/src/assets/news/news.json b/ui/src/assets/news/news.json index 753062d..874cc42 100644 --- a/ui/src/assets/news/news.json +++ b/ui/src/assets/news/news.json @@ -1,16 +1,11 @@ { - "key": "00e6b81777a275f5a140fc9101cb943810db6a69f6eb3927319c5aee0c876221", + "key": "00e6b81777a275f5a140fc9101cb94eef0db6a69f6eb3927319c5aee0c876221", "content": [ { - "title": "Table overview for listings", - "text": "Thanks to https://github.com/datenwurm, we now have a table overview for listings. If you decide to use the table view, the decision will be stored.", - "media": "1.png" - }, - { - "title": "Table overview for jobs", - "text": "Based on datenwurm's, work, I created a table overview for jobs. If you decide to use the table view, the decision will be stored.", - "media": "2.png" + "title": "Fredy goes multilingual!", + "text": "Fredy now supports multiple languages (Starting with german and english). You can select the language in the user-settings.", + "media": "1.jpg" } ] }