Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): follow theme library changes made in other windows (#3294)

Hampus5033cf720380
diff --git a/fluxer_app/src/features/i18n/locales/ar/messages.po b/fluxer_app/src/features/i18n/locales/ar/messages.po
index 20d5842cf..c0cba6207 100644
--- a/fluxer_app/src/features/i18n/locales/ar/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ar/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, zero {# قناة نصية} one {قناة نصية واحدة} two {قناتان نصيتان} few {# قنوات نصية} many {# قناة نصية} other {# قناة نصية}}، {voiceChannelCount, plural, zero {# قناة صوتية} one {قناة صوتية واحدة} two {قناتان صوتيتان} few {# قنوات صوتية} many {# قناة صوتية} other {# قناة صوتية}}، {categoryCount, plural, zero {# فئة} one {فئة واحدة} two {فئتان} few {# فئات} many {# فئة} other {# فئة}}، {roleCount, plural, zero {# دور} one {دور واحد} two {دوران} few {# أدوار} many {# دورًا} other {# دور}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "نسخة من {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/bg/messages.po b/fluxer_app/src/features/i18n/locales/bg/messages.po
index 525547cb7..2ab81b34a 100644
--- a/fluxer_app/src/features/i18n/locales/bg/messages.po
+++ b/fluxer_app/src/features/i18n/locales/bg/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# текстов канал} other {# текстови канала}}, {voiceChannelCount, plural, one {# гласов канал} other {# гласови канала}}, {categoryCount, plural, one {# категория} other {# категории}}, {roleCount, plural, one {# роля} other {# роли}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Копие на {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/cs/messages.po b/fluxer_app/src/features/i18n/locales/cs/messages.po
index 5683e87b3..d55ee8eff 100644
--- a/fluxer_app/src/features/i18n/locales/cs/messages.po
+++ b/fluxer_app/src/features/i18n/locales/cs/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# textový kanál} few {# textové kanály} many {# textového kanálu} other {# textových kanálů}}, {voiceChannelCount, plural, one {# hlasový kanál} few {# hlasové kanály} many {# hlasového kanálu} other {# hlasových kanálů}}, {categoryCount, plural, one {# kategorie} few {# kategorie} many {# kategorie} other {# kategorií}}, {roleCount, plural, one {# role} few {# role} many {# role} other {# rolí}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} (kopie)"
diff --git a/fluxer_app/src/features/i18n/locales/da/messages.po b/fluxer_app/src/features/i18n/locales/da/messages.po
index 605c76527..86c8278c3 100644
--- a/fluxer_app/src/features/i18n/locales/da/messages.po
+++ b/fluxer_app/src/features/i18n/locales/da/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# tekstkanal} other {# tekstkanaler}}, {voiceChannelCount, plural, one {# talekanal} other {# talekanaler}}, {categoryCount, plural, one {# kategori} other {# kategorier}}, {roleCount, plural, one {# rolle} other {# roller}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Kopi af {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/de/messages.po b/fluxer_app/src/features/i18n/locales/de/messages.po
index cfd3828c9..8a5bb182c 100644
--- a/fluxer_app/src/features/i18n/locales/de/messages.po
+++ b/fluxer_app/src/features/i18n/locales/de/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# Textkanal} other {# Textkanäle}}, {voiceChannelCount, plural, one {# Sprachkanal} other {# Sprachkanäle}}, {categoryCount, plural, one {# Kategorie} other {# Kategorien}}, {roleCount, plural, one {# Rolle} other {# Rollen}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Kopie von {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/el/messages.po b/fluxer_app/src/features/i18n/locales/el/messages.po
index b4f2fd05e..8f432f3c7 100644
--- a/fluxer_app/src/features/i18n/locales/el/messages.po
+++ b/fluxer_app/src/features/i18n/locales/el/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# κανάλι κειμένου} other {# κανάλια κειμένου}}, {voiceChannelCount, plural, one {# κανάλι φωνής} other {# κανάλια φωνής}}, {categoryCount, plural, one {# κατηγορία} other {# κατηγορίες}}, {roleCount, plural, one {# ρόλος} other {# ρόλοι}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} αντίγραφο"
diff --git a/fluxer_app/src/features/i18n/locales/en-GB/messages.po b/fluxer_app/src/features/i18n/locales/en-GB/messages.po
index 568f757a7..89de11f72 100644
--- a/fluxer_app/src/features/i18n/locales/en-GB/messages.po
+++ b/fluxer_app/src/features/i18n/locales/en-GB/messages.po
@@ -2159,7 +2159,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# text channel} other {# text channels}}, {voiceChannelCount, plural, one {# voice channel} other {# voice channels}}, {categoryCount, plural, one {# category} other {# categories}}, {roleCount, plural, one {# role} other {# roles}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} Copy"
diff --git a/fluxer_app/src/features/i18n/locales/en-US/messages.po b/fluxer_app/src/features/i18n/locales/en-US/messages.po
index 7b0158bfe..8ef822dc2 100644
--- a/fluxer_app/src/features/i18n/locales/en-US/messages.po
+++ b/fluxer_app/src/features/i18n/locales/en-US/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# text channel} other {# text channels}}, {voiceChannelCount, plural, one {# voice channel} other {# voice channels}}, {categoryCount, plural, one {# category} other {# categories}}, {roleCount, plural, one {# role} other {# roles}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} Copy"
diff --git a/fluxer_app/src/features/i18n/locales/es-419/messages.po b/fluxer_app/src/features/i18n/locales/es-419/messages.po
index a0e47d2aa..8d9f3f5f0 100644
--- a/fluxer_app/src/features/i18n/locales/es-419/messages.po
+++ b/fluxer_app/src/features/i18n/locales/es-419/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# canal de texto} many {# canales de texto} other {# canales de texto}}, {voiceChannelCount, plural, one {# canal de voz} many {# canales de voz} other {# canales de voz}}, {categoryCount, plural, one {# categoría} many {# categorías} other {# categorías}}, {roleCount, plural, one {# rol} many {# roles} other {# roles}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Copia de {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/es-ES/messages.po b/fluxer_app/src/features/i18n/locales/es-ES/messages.po
index 995d47403..7c97d8fa9 100644
--- a/fluxer_app/src/features/i18n/locales/es-ES/messages.po
+++ b/fluxer_app/src/features/i18n/locales/es-ES/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# canal de texto} many {# canales de texto} other {# canales de texto}}, {voiceChannelCount, plural, one {# canal de voz} many {# canales de voz} other {# canales de voz}}, {categoryCount, plural, one {# categoría} many {# categorías} other {# categorías}}, {roleCount, plural, one {# rol} many {# roles} other {# roles}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Copia de {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/fi/messages.po b/fluxer_app/src/features/i18n/locales/fi/messages.po
index b23064bd0..de9ecf694 100644
--- a/fluxer_app/src/features/i18n/locales/fi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/fi/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# tekstikanava} other {# tekstikanavaa}}, {voiceChannelCount, plural, one {# äänikanava} other {# äänikanavaa}}, {categoryCount, plural, one {# kategoria} other {# kategoriaa}}, {roleCount, plural, one {# rooli} other {# roolia}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} (kopio)"
diff --git a/fluxer_app/src/features/i18n/locales/fr/messages.po b/fluxer_app/src/features/i18n/locales/fr/messages.po
index 3f1e4d432..f30f852e7 100644
--- a/fluxer_app/src/features/i18n/locales/fr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/fr/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# salon textuel} many {# salons textuels} other {# salons textuels}}, {voiceChannelCount, plural, one {# salon vocal} many {# salons vocaux} other {# salons vocaux}}, {categoryCount, plural, one {# catégorie} many {# catégories} other {# catégories}}, {roleCount, plural, one {# rôle} many {# rôles} other {# rôles}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Copie de {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/he/messages.po b/fluxer_app/src/features/i18n/locales/he/messages.po
index 54e042a58..2949d0140 100644
--- a/fluxer_app/src/features/i18n/locales/he/messages.po
+++ b/fluxer_app/src/features/i18n/locales/he/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# ערוץ טקסט} two {# ערוצי טקסט} other {# ערוצי טקסט}}, {voiceChannelCount, plural, one {# ערוץ קולי} two {# ערוצים קוליים} other {# ערוצים קוליים}}, {categoryCount, plural, one {# קטגוריה} two {# קטגוריות} other {# קטגוריות}}, {roleCount, plural, one {# תפקיד} two {# תפקידים} other {# תפקידים}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "עותק של {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/hi/messages.po b/fluxer_app/src/features/i18n/locales/hi/messages.po
index a81c99603..3c20b85fe 100644
--- a/fluxer_app/src/features/i18n/locales/hi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hi/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# टेक्स्ट चैनल} other {# टेक्स्ट चैनल}}, {voiceChannelCount, plural, one {# वॉइस चैनल} other {# वॉइस चैनल}}, {categoryCount, plural, =0 {# श्रेणियाँ} one {# श्रेणी} other {# श्रेणियाँ}}, {roleCount, plural, one {# रोल} other {# रोल}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} की कॉपी"
diff --git a/fluxer_app/src/features/i18n/locales/hr/messages.po b/fluxer_app/src/features/i18n/locales/hr/messages.po
index 1ec1462f0..e74a34840 100644
--- a/fluxer_app/src/features/i18n/locales/hr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hr/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# tekstualni kanal} few {# tekstualna kanala} other {# tekstualnih kanala}}, {voiceChannelCount, plural, one {# glasovni kanal} few {# glasovna kanala} other {# glasovnih kanala}}, {categoryCount, plural, one {# kategorija} few {# kategorije} other {# kategorija}}, {roleCount, plural, one {# uloga} few {# uloge} other {# uloga}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} (kopija)"
diff --git a/fluxer_app/src/features/i18n/locales/hu/messages.po b/fluxer_app/src/features/i18n/locales/hu/messages.po
index ce07dd54a..0dc259258 100644
--- a/fluxer_app/src/features/i18n/locales/hu/messages.po
+++ b/fluxer_app/src/features/i18n/locales/hu/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# szöveges csatorna} other {# szöveges csatorna}}, {voiceChannelCount, plural, one {# hangcsatorna} other {# hangcsatorna}}, {categoryCount, plural, one {# kategória} other {# kategória}}, {roleCount, plural, one {# szerepkör} other {# szerepkör}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} másolata"
diff --git a/fluxer_app/src/features/i18n/locales/id/messages.po b/fluxer_app/src/features/i18n/locales/id/messages.po
index 57edf8a07..dafc64515 100644
--- a/fluxer_app/src/features/i18n/locales/id/messages.po
+++ b/fluxer_app/src/features/i18n/locales/id/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, other {# saluran teks}}, {voiceChannelCount, plural, other {# saluran suara}}, {categoryCount, plural, other {# kategori}}, {roleCount, plural, other {# peran}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Salinan {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/it/messages.po b/fluxer_app/src/features/i18n/locales/it/messages.po
index 7a88df3ea..d58d36791 100644
--- a/fluxer_app/src/features/i18n/locales/it/messages.po
+++ b/fluxer_app/src/features/i18n/locales/it/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# canale testuale} many {# canali testuali} other {# canali testuali}}, {voiceChannelCount, plural, one {# canale vocale} many {# canali vocali} other {# canali vocali}}, {categoryCount, plural, one {# categoria} many {# categorie} other {# categorie}}, {roleCount, plural, one {# ruolo} many {# ruoli} other {# ruoli}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Copia di {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/ja/messages.po b/fluxer_app/src/features/i18n/locales/ja/messages.po
index 9dd3c97b9..27bbba388 100644
--- a/fluxer_app/src/features/i18n/locales/ja/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ja/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, other {#個のテキストチャンネル}}、{voiceChannelCount, plural, other {#個のボイスチャンネル}}、{categoryCount, plural, other {#個のカテゴリ}}、{roleCount, plural, other {#個のロール}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName}のコピー"
diff --git a/fluxer_app/src/features/i18n/locales/ko/messages.po b/fluxer_app/src/features/i18n/locales/ko/messages.po
index db1a24a21..25b299311 100644
--- a/fluxer_app/src/features/i18n/locales/ko/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ko/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, other {텍스트 채널 #개}}, {voiceChannelCount, plural, other {음성 채널 #개}}, {categoryCount, plural, other {카테고리 #개}}, {roleCount, plural, other {역할 #개}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} 복사본"
diff --git a/fluxer_app/src/features/i18n/locales/lt/messages.po b/fluxer_app/src/features/i18n/locales/lt/messages.po
index 88acaddad..9110cce07 100644
--- a/fluxer_app/src/features/i18n/locales/lt/messages.po
+++ b/fluxer_app/src/features/i18n/locales/lt/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# tekstinis kanalas} few {# tekstiniai kanalai} many {# tekstinio kanalo} other {# tekstinių kanalų}}, {voiceChannelCount, plural, one {# balso kanalas} few {# balso kanalai} many {# balso kanalo} other {# balso kanalų}}, {categoryCount, plural, one {# kategorija} few {# kategorijos} many {# kategorijos} other {# kategorijų}}, {roleCount, plural, one {# vaidmuo} few {# vaidmenys} many {# vaidmens} other {# vaidmenų}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} kopija"
diff --git a/fluxer_app/src/features/i18n/locales/nl/messages.po b/fluxer_app/src/features/i18n/locales/nl/messages.po
index 24514bfca..6d1a7658c 100644
--- a/fluxer_app/src/features/i18n/locales/nl/messages.po
+++ b/fluxer_app/src/features/i18n/locales/nl/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# tekstkanaal} other {# tekstkanalen}}, {voiceChannelCount, plural, one {# spraakkanaal} other {# spraakkanalen}}, {categoryCount, plural, one {# categorie} other {# categorieën}}, {roleCount, plural, one {# rol} other {# rollen}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} kopie"
diff --git a/fluxer_app/src/features/i18n/locales/no/messages.po b/fluxer_app/src/features/i18n/locales/no/messages.po
index aab8fd528..a7976edce 100644
--- a/fluxer_app/src/features/i18n/locales/no/messages.po
+++ b/fluxer_app/src/features/i18n/locales/no/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# tekstkanal} other {# tekstkanaler}}, {voiceChannelCount, plural, one {# talekanal} other {# talekanaler}}, {categoryCount, plural, one {# kategori} other {# kategorier}}, {roleCount, plural, one {# rolle} other {# roller}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Kopi av {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/pl/messages.po b/fluxer_app/src/features/i18n/locales/pl/messages.po
index b8d8d98e5..63b75fc61 100644
--- a/fluxer_app/src/features/i18n/locales/pl/messages.po
+++ b/fluxer_app/src/features/i18n/locales/pl/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# kanał tekstowy} few {# kanały tekstowe} many {# kanałów tekstowych} other {# kanału tekstowego}}, {voiceChannelCount, plural, one {# kanał głosowy} few {# kanały głosowe} many {# kanałów głosowych} other {# kanału głosowego}}, {categoryCount, plural, one {# kategoria} few {# kategorie} many {# kategorii} other {# kategorii}}, {roleCount, plural, one {# rola} few {# role} many {# ról} other {# roli}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Kopia {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po b/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
index 2359f6d03..80d25dfb0 100644
--- a/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
+++ b/fluxer_app/src/features/i18n/locales/pt-BR/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, =0 {# canais de texto} one {# canal de texto} many {# canais de texto} other {# canais de texto}}, {voiceChannelCount, plural, =0 {# canais de voz} one {# canal de voz} many {# canais de voz} other {# canais de voz}}, {categoryCount, plural, =0 {# categorias} one {# categoria} many {# categorias} other {# categorias}}, {roleCount, plural, =0 {# cargos} one {# cargo} many {# cargos} other {# cargos}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Cópia de {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/ro/messages.po b/fluxer_app/src/features/i18n/locales/ro/messages.po
index 3b478e389..9729c9b03 100644
--- a/fluxer_app/src/features/i18n/locales/ro/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ro/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# canal text} few {# canale text} other {# de canale text}}, {voiceChannelCount, plural, one {# canal vocal} few {# canale vocale} other {# de canale vocale}}, {categoryCount, plural, one {# categorie} few {# categorii} other {# de categorii}}, {roleCount, plural, one {# rol} few {# roluri} other {# de roluri}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Copie după {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/ru/messages.po b/fluxer_app/src/features/i18n/locales/ru/messages.po
index decc408f9..2d8a8e650 100644
--- a/fluxer_app/src/features/i18n/locales/ru/messages.po
+++ b/fluxer_app/src/features/i18n/locales/ru/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# текстовый канал} few {# текстовых канала} many {# текстовых каналов} other {# текстового канала}}, {voiceChannelCount, plural, one {# голосовой канал} few {# голосовых канала} many {# голосовых каналов} other {# голосового канала}}, {categoryCount, plural, one {# категория} few {# категории} many {# категорий} other {# категории}}, {roleCount, plural, one {# роль} few {# роли} many {# ролей} other {# роли}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} (копия)"
diff --git a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po b/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
index 711d6d9d7..16b55a256 100644
--- a/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
+++ b/fluxer_app/src/features/i18n/locales/sv-SE/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# textkanal} other {# textkanaler}}, {voiceChannelCount, plural, one {# röstkanal} other {# röstkanaler}}, {categoryCount, plural, one {# kategori} other {# kategorier}}, {roleCount, plural, one {# roll} other {# roller}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} kopia"
diff --git a/fluxer_app/src/features/i18n/locales/th/messages.po b/fluxer_app/src/features/i18n/locales/th/messages.po
index e743e8a10..bb44e4a87 100644
--- a/fluxer_app/src/features/i18n/locales/th/messages.po
+++ b/fluxer_app/src/features/i18n/locales/th/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, other {ช่องข้อความ # ช่อง}}, {voiceChannelCount, plural, other {ช่องเสียง # ช่อง}}, {categoryCount, plural, other {# หมวดหมู่}}, {roleCount, plural, other {# บทบาท}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} (สำเนา)"
diff --git a/fluxer_app/src/features/i18n/locales/tr/messages.po b/fluxer_app/src/features/i18n/locales/tr/messages.po
index 6113566a7..aa927b4fd 100644
--- a/fluxer_app/src/features/i18n/locales/tr/messages.po
+++ b/fluxer_app/src/features/i18n/locales/tr/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# metin kanalı} other {# metin kanalı}}, {voiceChannelCount, plural, one {# sesli kanal} other {# sesli kanal}}, {categoryCount, plural, one {# kategori} other {# kategori}}, {roleCount, plural, one {# rol} other {# rol}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} kopyası"
diff --git a/fluxer_app/src/features/i18n/locales/uk/messages.po b/fluxer_app/src/features/i18n/locales/uk/messages.po
index aab6fc1d0..d692cac13 100644
--- a/fluxer_app/src/features/i18n/locales/uk/messages.po
+++ b/fluxer_app/src/features/i18n/locales/uk/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, one {# текстовий канал} few {# текстові канали} many {# текстових каналів} other {# текстового каналу}}, {voiceChannelCount, plural, one {# голосовий канал} few {# голосові канали} many {# голосових каналів} other {# голосового каналу}}, {categoryCount, plural, one {# категорія} few {# категорії} many {# категорій} other {# категорії}}, {roleCount, plural, one {# роль} few {# ролі} many {# ролей} other {# ролі}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Копія {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/vi/messages.po b/fluxer_app/src/features/i18n/locales/vi/messages.po
index d7e08e9b4..339495fc6 100644
--- a/fluxer_app/src/features/i18n/locales/vi/messages.po
+++ b/fluxer_app/src/features/i18n/locales/vi/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, other {# kênh văn bản}}, {voiceChannelCount, plural, other {# kênh thoại}}, {categoryCount, plural, other {# danh mục}}, {roleCount, plural, other {# vai trò}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "Bản sao của {themeName}"
diff --git a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po b/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
index 3bc8b8f9b..a270a13ec 100644
--- a/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
+++ b/fluxer_app/src/features/i18n/locales/zh-CN/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, other {# 个文字频道}},{voiceChannelCount, plural, other {# 个语音频道}},{categoryCount, plural, other {# 个类别}},{roleCount, plural, other {# 个身份组}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} 副本"
diff --git a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po b/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
index 3c066f1f2..0d2b290d2 100644
--- a/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
+++ b/fluxer_app/src/features/i18n/locales/zh-TW/messages.po
@@ -2158,7 +2158,7 @@ msgid "{textChannelCount, plural, one {# text channel} other {# text channels}},
msgstr "{textChannelCount, plural, other {# 個文字頻道}}、{voiceChannelCount, plural, other {# 個語音頻道}}、{categoryCount, plural, other {# 個類別}}、{roleCount, plural, other {# 個身分組}}"
#. Name given to the copy created by the Duplicate button in the Theme Studio theme library. {themeName} is the name of the theme being duplicated.
-#: src/features/theme/state/ThemeLibrary.ts:35
+#: src/features/theme/state/ThemeLibrary.ts:37
msgid "{themeName} Copy"
msgstr "{themeName} 副本"
diff --git a/fluxer_app/src/features/theme/state/ThemeLibrary.ts b/fluxer_app/src/features/theme/state/ThemeLibrary.ts
index dc6c97cf0..7becefb63 100644
--- a/fluxer_app/src/features/theme/state/ThemeLibrary.ts
+++ b/fluxer_app/src/features/theme/state/ThemeLibrary.ts
@@ -1,5 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import {AppStorageKey} from '@app/features/platform/state/AppStorageKeys';
+import AppStorage from '@app/features/platform/state/PersistentStorage';
import {Logger} from '@app/features/platform/utils/AppLogger';
import {randomUuid} from '@app/features/platform/utils/RandomUuid';
import {
@@ -124,6 +126,12 @@ async function dataUrlToBlob(dataUrl: string): Promise<Blob> {
return await response.blob();
}
+const THEME_LIBRARY_STORAGE_KEYS: ReadonlySet<string> = new Set([
+ AppStorageKey.THEME_LIBRARY_THEMES,
+ AppStorageKey.THEME_LIBRARY_LOCAL_FILES,
+ AppStorageKey.THEME_LIBRARY_ENABLED_IDS,
+]);
+
function themeSortValue(theme: ThemeLibraryTheme): string {
return `${theme.name.toLowerCase()}\u0000${theme.updatedAt}`;
}
@@ -140,13 +148,15 @@ class ThemeLibrary {
linkedFileStatus = new Map<string, ThemeLinkedFileStatus>();
focusedThemeId: string | null = null;
private initPromise: Promise<void> | null = null;
+ private loadGeneration = 0;
+ private storageSyncStarted = false;
private linkedFileCss = new Map<string, string>();
private linkedThemesChanged: (() => void) | null = null;
constructor() {
- makeAutoObservable<this, 'linkedFileCss' | 'linkedThemesChanged'>(
+ makeAutoObservable<this, 'linkedFileCss' | 'linkedThemesChanged' | 'loadGeneration' | 'storageSyncStarted'>(
this,
- {linkedFileCss: false, linkedThemesChanged: false},
+ {linkedFileCss: false, linkedThemesChanged: false, loadGeneration: false, storageSyncStarted: false},
{autoBind: true},
);
}
@@ -198,7 +208,22 @@ class ThemeLibrary {
return nextLoad;
}
+ private followExternalStorageChanges(): void {
+ if (this.storageSyncStarted) return;
+ this.storageSyncStarted = true;
+ AppStorage.subscribe(
+ (event) => {
+ if (event.key === null || THEME_LIBRARY_STORAGE_KEYS.has(event.key)) {
+ void this.reload();
+ }
+ },
+ {source: 'external'},
+ );
+ }
+
private async load(): Promise<void> {
+ this.followExternalStorageChanges();
+ const generation = ++this.loadGeneration;
try {
const [themes, assets, localFiles, enabledThemeIds] = await Promise.all([
listThemeLibraryThemes(),
@@ -206,6 +231,9 @@ class ThemeLibrary {
listThemeLibraryLocalFiles(),
getEnabledThemeIds(),
]);
+ if (generation !== this.loadGeneration) {
+ return;
+ }
runInAction(() => {
this.themes = themes.sort((a, b) => themeSortValue(a).localeCompare(themeSortValue(b)));
this.assets = assets.sort((a, b) => a.name.localeCompare(b.name));
@@ -217,6 +245,9 @@ class ThemeLibrary {
});
this.refreshLinkedThemes();
} catch (error) {
+ if (generation !== this.loadGeneration) {
+ return;
+ }
logger.error('Failed to hydrate theme library', error);
runInAction(() => {
this.loadFailed = true;