From 500aded0b041a92641a54b09b64a7f4fc2548a32 Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Tue, 21 May 2024 17:56:59 +0100 Subject: [PATCH] refactor: changes to weather cache --- src/features/marketplace/views/ItemPage.jsx | 79 ++++++++++--------- src/features/misc/sections/Advanced.jsx | 68 +++++++++++----- src/features/weather/api/getWeather.js | 13 ++- .../weather/options/WeatherOptions.jsx | 1 + src/i18n/locales/bn.json | 10 ++- src/i18n/locales/de_DE.json | 10 ++- src/i18n/locales/en_GB.json | 10 ++- src/i18n/locales/en_US.json | 10 ++- src/i18n/locales/es.json | 10 ++- src/i18n/locales/es_419.json | 10 ++- src/i18n/locales/fr.json | 10 ++- src/i18n/locales/id_ID.json | 10 ++- src/i18n/locales/nl.json | 10 ++- src/i18n/locales/no.json | 10 ++- src/i18n/locales/pt.json | 10 ++- src/i18n/locales/pt_BR.json | 10 ++- src/i18n/locales/ru.json | 10 ++- src/i18n/locales/tr_TR.json | 10 ++- src/i18n/locales/zh_CN.json | 10 ++- 19 files changed, 224 insertions(+), 87 deletions(-) diff --git a/src/features/marketplace/views/ItemPage.jsx b/src/features/marketplace/views/ItemPage.jsx index b4449164..01e40315 100644 --- a/src/features/marketplace/views/ItemPage.jsx +++ b/src/features/marketplace/views/ItemPage.jsx @@ -5,7 +5,7 @@ import { MdIosShare, MdFlag, MdAccountCircle, - MdBugReport, + MdCalendarMonth, MdFormatQuote, MdImage, MdTranslate, @@ -156,6 +156,9 @@ class ItemPage extends PureComponent { ); + const dateObj = new Date(this.props.data.data.updated_at); + const formattedDate = new Intl.DateTimeFormat(shortLocale, { year: 'numeric', month: 'long', day: '2-digit' }).format(dateObj); + return ( <> @@ -280,15 +287,9 @@ class ItemPage extends PureComponent {
{moreInfoItem( - , - variables.getMessage('modals.main.marketplace.product.version'), - updateButton ? ( - - {this.props.data.version} (Installed: {this.props.data.addonInstalledVersion}) - - ) : ( - {this.props.data.version} - ), + , + variables.getMessage('modals.main.marketplace.product.updated_at'), + formattedDate, )} {this.props.data.data.quotes && moreInfoItem( @@ -336,31 +337,37 @@ class ItemPage extends PureComponent { e.target.src = placeholderIcon; }} /> - {this.props.button} -
-
+ {localStorage.getItem('welcomePreview') !== 'true' ? ( + this.props.button + ) : ( +

{variables.getMessage('modals.main.marketplace.product.buttons.not_available_preview')}

+ )} + {this.props.data.data.sideload !== true && ( +
+
+ )} {this.props.data.data.in_collections?.length > 0 && (
diff --git a/src/features/misc/sections/Advanced.jsx b/src/features/misc/sections/Advanced.jsx index b5b225de..dc1a23f5 100644 --- a/src/features/misc/sections/Advanced.jsx +++ b/src/features/misc/sections/Advanced.jsx @@ -6,6 +6,7 @@ import { MdDownload as ExportIcon, MdRestartAlt as ResetIcon, MdDataUsage, + MdError, } from 'react-icons/md'; import { exportSettings, importSettings } from 'utils/settings'; @@ -23,28 +24,55 @@ function AdvancedOptions() { const ADVANCED_SECTION = 'modals.main.settings.sections.advanced'; const Data = () => { - return ( - localStorage.getItem('welcomePreview') !== 'true' && ( - - + +
+
+ importSettings(e)} + /> +
+ ) : ( +
+
+
+ + + + {variables.getMessage( + 'modals.main.settings.sections.advanced.preview_data_disabled.title', + )} + + + {variables.getMessage( + 'modals.main.settings.sections.advanced.preview_data_disabled.description', + )} +
- importSettings(e)} - /> - - ) +
+
); }; diff --git a/src/features/weather/api/getWeather.js b/src/features/weather/api/getWeather.js index aa953edd..eddfec26 100644 --- a/src/features/weather/api/getWeather.js +++ b/src/features/weather/api/getWeather.js @@ -14,6 +14,15 @@ export const getWeather = async (location, done) => { return; } + let cached = localStorage.getItem('currentWeather'); + if (cached) { + cached = JSON.parse(cached); + // 300 seconds (in ms) = 5 minutes + if (Date.now() - cached.cachedAt < 3e5) { + return cached.data; + } + } + try { const response = await fetch( variables.constants.API_URL + `/weather?city=${location}&language=${variables.languagecode}`, @@ -41,7 +50,7 @@ export const getWeather = async (location, done) => { fahrenheit: '°F', }; - return { + const cacheable = { icon: data.weather[0].icon, temp_text: tempSymbols[tempFormat] || 'K', weather: { @@ -59,6 +68,8 @@ export const getWeather = async (location, done) => { }, done: true, }; + localStorage.setItem('currentWeather', JSON.stringify({ data: cacheable, cachedAt: Date.now() })); + return cacheable } catch (error) { console.error('Fetch Error: ', error); } diff --git a/src/features/weather/options/WeatherOptions.jsx b/src/features/weather/options/WeatherOptions.jsx index e73b0e8f..59717201 100644 --- a/src/features/weather/options/WeatherOptions.jsx +++ b/src/features/weather/options/WeatherOptions.jsx @@ -26,6 +26,7 @@ class WeatherOptions extends PureComponent { } changeLocation(e) { + localStorage.removeItem('currentWeather'); this.setState({ location: e.target.value, }); diff --git a/src/i18n/locales/bn.json b/src/i18n/locales/bn.json index 57d601d5..a229d80d 100644 --- a/src/i18n/locales/bn.json +++ b/src/i18n/locales/bn.json @@ -439,7 +439,11 @@ "subtitle": "আপনার কম্পিউটার থেকে স্বয়ংক্রিয় ডিফল্টের পরিবর্তে তালিকা থেকে একটি টাইমজোন বেছে নিন", "automatic": "স্বয়ংক্রিয়" }, - "experimental_warning": "অনুগ্রহ করে মনে রাখবেন যে আপনার পরীক্ষামূলক মোড চালু থাকলে Mue টিম সাহায্য প্রদান করতে পারবে না। অনুগ্রহ করে প্রথমে এটি বন্ধ করুন এবং সাপোর্টের সাথে যোগাযোগ করার আগে সমস্যাটি ঘটতে থাকে কিনা তা দেখুন।" + "experimental_warning": "অনুগ্রহ করে মনে রাখবেন যে আপনার পরীক্ষামূলক মোড চালু থাকলে Mue টিম সাহায্য প্রদান করতে পারবে না। অনুগ্রহ করে প্রথমে এটি বন্ধ করুন এবং সাপোর্টের সাথে যোগাযোগ করার আগে সমস্যাটি ঘটতে থাকে কিনা তা দেখুন।", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Stats", @@ -541,6 +545,7 @@ "no_quotes": "No. Quotes", "version": "Version", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Part of", "explore": "Explore", "buttons": { @@ -548,7 +553,8 @@ "remove": "Remove", "update_addon": "Update Add-on", "back": "Back", - "report": "Report" + "report": "Report", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/de_DE.json b/src/i18n/locales/de_DE.json index c2a4a859..fde6e5f1 100644 --- a/src/i18n/locales/de_DE.json +++ b/src/i18n/locales/de_DE.json @@ -439,7 +439,11 @@ "subtitle": "Wählen Sie eine Zeitzone aus der Liste anstelle der automatischen Vorgabe Ihres Computers", "automatic": "Automatisch" }, - "experimental_warning": "Bitte beachten Sie, dass das Mue Team keinen Support leisten kann, wenn Sie den experimentellen Modus aktiviert haben. Bitte deaktivieren Sie ihn zuerst und schauen Sie, ob das Problem weiterhin auftritt, bevor Sie den Support kontaktieren." + "experimental_warning": "Bitte beachten Sie, dass das Mue Team keinen Support leisten kann, wenn Sie den experimentellen Modus aktiviert haben. Bitte deaktivieren Sie ihn zuerst und schauen Sie, ob das Problem weiterhin auftritt, bevor Sie den Support kontaktieren.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Statistiken", @@ -541,6 +545,7 @@ "no_quotes": "Keine Zitate", "version": "Version", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Teil von", "explore": "Erkunden", "buttons": { @@ -548,7 +553,8 @@ "remove": "Entfernen", "update_addon": "Update Add-on", "back": "Zurück", - "report": "Melden" + "report": "Melden", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/en_GB.json b/src/i18n/locales/en_GB.json index 60ac463c..97cf8312 100644 --- a/src/i18n/locales/en_GB.json +++ b/src/i18n/locales/en_GB.json @@ -439,7 +439,11 @@ "subtitle": "Choose a timezone from the list instead of the automatic default from your computer", "automatic": "Automatic" }, - "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support." + "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.", + "preview_data_disabled": { + "title":"Data Settings Disabled", + "description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Stats", @@ -541,6 +545,7 @@ "no_quotes": "No. Quotes", "version": "Version", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Part of", "explore": "Explore", "buttons": { @@ -548,7 +553,8 @@ "remove": "Remove", "update_addon": "Update Add-on", "back": "Back", - "report": "Report" + "report": "Report", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/en_US.json b/src/i18n/locales/en_US.json index c9ecdacb..63b5cfa9 100644 --- a/src/i18n/locales/en_US.json +++ b/src/i18n/locales/en_US.json @@ -439,7 +439,11 @@ "subtitle": "Choose a timezone from the list instead of the automatic default from your computer", "automatic": "Automatic" }, - "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support." + "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Stats", @@ -541,6 +545,7 @@ "no_quotes": "No. Quotes", "version": "Version", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Part of", "explore": "Explore", "buttons": { @@ -548,7 +553,8 @@ "remove": "Remove", "update_addon": "Update Add-on", "back": "Back", - "report": "Report" + "report": "Report", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index 09e1d47e..ff52ecd4 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -439,7 +439,11 @@ "subtitle": "Elija una zona horaria de la lista en lugar de la predeterminada automáticamente de su ordenador", "automatic": "Automático" }, - "experimental_warning": "Por favor, ten en cuenta que el equipo de Mue no puede dar soporte si tienes el modo experimental activado. Por favor, desactívalo primero y comprueba si el problema sigue ocurriendo antes de contactar con el equipo de soporte." + "experimental_warning": "Por favor, ten en cuenta que el equipo de Mue no puede dar soporte si tienes el modo experimental activado. Por favor, desactívalo primero y comprueba si el problema sigue ocurriendo antes de contactar con el equipo de soporte.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Estadísticas", @@ -541,6 +545,7 @@ "no_quotes": "Sin citas", "version": "Versión", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Parte de", "explore": "Explorar", "buttons": { @@ -548,7 +553,8 @@ "remove": "Desinstalar", "update_addon": "Actualizar complemento", "back": "Atrás", - "report": "Informe" + "report": "Informe", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/es_419.json b/src/i18n/locales/es_419.json index 9017def4..0864d57a 100644 --- a/src/i18n/locales/es_419.json +++ b/src/i18n/locales/es_419.json @@ -439,7 +439,11 @@ "subtitle": "Choose a timezone from the list instead of the automatic default from your computer", "automatic": "Automático" }, - "experimental_warning": "Por favor, ten en cuenta que el equipo de Mue no puede dar soporte si tienes el modo experimental activado. Por favor, desactívalo primero y comprueba si el problema sigue ocurriendo antes de contactar al equipo de soporte." + "experimental_warning": "Por favor, ten en cuenta que el equipo de Mue no puede dar soporte si tienes el modo experimental activado. Por favor, desactívalo primero y comprueba si el problema sigue ocurriendo antes de contactar al equipo de soporte.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Estadísticas", @@ -541,6 +545,7 @@ "no_quotes": "No. Quotes", "version": "Versión", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Part of", "explore": "Explore", "buttons": { @@ -548,7 +553,8 @@ "remove": "Desinstalar", "update_addon": "Actualizar complemento", "back": "Back", - "report": "Report" + "report": "Report", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 04d651df..79082122 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -439,7 +439,11 @@ "subtitle": "Choose a timezone from the list instead of the automatic default from your computer", "automatic": "Automatic" }, - "experimental_warning": "Veuillez noter que l'équipe Mue ne peut pas fournir d'assistance si vous avez activé le mode expérimental. Veuillez d'abord le désactiver et voir si le problème persiste avant de contacter le support." + "experimental_warning": "Veuillez noter que l'équipe Mue ne peut pas fournir d'assistance si vous avez activé le mode expérimental. Veuillez d'abord le désactiver et voir si le problème persiste avant de contacter le support.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Stats", @@ -541,6 +545,7 @@ "no_quotes": "No. Quotes", "version": "Version", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Part of", "explore": "Explore", "buttons": { @@ -548,7 +553,8 @@ "remove": "Enlever", "update_addon": "Update Add-on", "back": "Back", - "report": "Report" + "report": "Report", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/id_ID.json b/src/i18n/locales/id_ID.json index 525f6816..483d567c 100644 --- a/src/i18n/locales/id_ID.json +++ b/src/i18n/locales/id_ID.json @@ -439,7 +439,11 @@ "subtitle": "Choose a timezone from the list instead of the automatic default from your computer", "automatic": "Otomatis" }, - "experimental_warning": "Harap diperhatikan bahwa tim Mue tidak menyediakan dukungan jika Anda mengaktifkan mode experimental. Harap nonaktifkan terlebih dahulu dan lihat apabila kendala Anda masih terjadi sebelum menghubungi kami." + "experimental_warning": "Harap diperhatikan bahwa tim Mue tidak menyediakan dukungan jika Anda mengaktifkan mode experimental. Harap nonaktifkan terlebih dahulu dan lihat apabila kendala Anda masih terjadi sebelum menghubungi kami.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Statistik", @@ -541,6 +545,7 @@ "no_quotes": "No. Quotes", "version": "Versi", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Part of", "explore": "Explore", "buttons": { @@ -548,7 +553,8 @@ "remove": "Hapus", "update_addon": "Perbarui Add-on", "back": "Back", - "report": "Report" + "report": "Report", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/nl.json b/src/i18n/locales/nl.json index 21ee45a3..55c1721d 100644 --- a/src/i18n/locales/nl.json +++ b/src/i18n/locales/nl.json @@ -439,7 +439,11 @@ "subtitle": "Kies een tijdzone van de lijst in plaats van de automatische standaard van je computer", "automatic": "Automatic" }, - "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support." + "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Stats", @@ -541,6 +545,7 @@ "no_quotes": "Geen. Citaten", "version": "Versie", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Deel van", "explore": "Verken", "buttons": { @@ -548,7 +553,8 @@ "remove": "Verwijderen", "update_addon": "Update Add-on", "back": "Terug", - "report": "Rapporteer" + "report": "Rapporteer", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/no.json b/src/i18n/locales/no.json index 6116b820..51780751 100644 --- a/src/i18n/locales/no.json +++ b/src/i18n/locales/no.json @@ -439,7 +439,11 @@ "subtitle": "Choose a timezone from the list instead of the automatic default from your computer", "automatic": "Automatic" }, - "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support." + "experimental_warning": "Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Stats", @@ -541,6 +545,7 @@ "no_quotes": "No. Quotes", "version": "Versjon", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Part of", "explore": "Explore", "buttons": { @@ -548,7 +553,8 @@ "remove": "Fjern", "update_addon": "Update Add-on", "back": "Back", - "report": "Report" + "report": "Report", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/pt.json b/src/i18n/locales/pt.json index 107e5eb3..10daeb84 100644 --- a/src/i18n/locales/pt.json +++ b/src/i18n/locales/pt.json @@ -439,7 +439,11 @@ "subtitle": "Escolha um fuso horário na lista em vez do padrão automático do seu computador", "automatic": "Automático" }, - "experimental_warning": "Observe que a equipa Mue não pode fornecer suporte se tiver o modo experimental ativado. Desative-o primeiro e veja se o problema continua antes de entrar em contato com o suporte." + "experimental_warning": "Observe que a equipa Mue não pode fornecer suporte se tiver o modo experimental ativado. Desative-o primeiro e veja se o problema continua antes de entrar em contato com o suporte.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Estatísticas", @@ -541,6 +545,7 @@ "no_quotes": "Sem citações", "version": "Versão", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Parte de", "explore": "Explorar", "buttons": { @@ -548,7 +553,8 @@ "remove": "Remover", "update_addon": "Atualizar complemento", "back": "Voltar", - "report": "Reportar" + "report": "Reportar", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/pt_BR.json b/src/i18n/locales/pt_BR.json index 3a528a8d..c90b839e 100644 --- a/src/i18n/locales/pt_BR.json +++ b/src/i18n/locales/pt_BR.json @@ -439,7 +439,11 @@ "subtitle": "Escolha um fuso horário na lista em vez do padrão automático do seu computador", "automatic": "Automático" }, - "experimental_warning": "Observe que a equipe Mue não pode fornecer suporte se você tiver o modo experimental ativado. Desative-o primeiro e veja se o problema continua antes de entrar em contato com o suporte." + "experimental_warning": "Observe que a equipe Mue não pode fornecer suporte se você tiver o modo experimental ativado. Desative-o primeiro e veja se o problema continua antes de entrar em contato com o suporte.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Estatísticas", @@ -541,6 +545,7 @@ "no_quotes": "Sem citações", "version": "Versão", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Parte de", "explore": "Explorar", "buttons": { @@ -548,7 +553,8 @@ "remove": "Remover", "update_addon": "Atualizar complemento", "back": "Voltar", - "report": "Reportar" + "report": "Reportar", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index e1baa14d..588d6f06 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -439,7 +439,11 @@ "subtitle": "Выберите часовой пояс из списка вместо автоматического по умолчанию с вашего компьютера", "automatic": "Автоматически" }, - "experimental_warning": "Обратите внимание, что команда Mue не может оказать поддержку, если у вас включен экспериментальный режим. Пожалуйста, сначала отключите его и посмотрите, сохранится ли проблема, прежде чем обращаться в службу поддержки." + "experimental_warning": "Обратите внимание, что команда Mue не может оказать поддержку, если у вас включен экспериментальный режим. Пожалуйста, сначала отключите его и посмотрите, сохранится ли проблема, прежде чем обращаться в службу поддержки.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "Stats", @@ -541,6 +545,7 @@ "no_quotes": "Цитаты", "version": "Версия", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Часть", "explore": "Обзор", "buttons": { @@ -548,7 +553,8 @@ "remove": "Удалить", "update_addon": "Update Add-on", "back": "Назад", - "report": "Жалоба" + "report": "Жалоба", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/tr_TR.json b/src/i18n/locales/tr_TR.json index 6e736ffb..6f7f18d6 100644 --- a/src/i18n/locales/tr_TR.json +++ b/src/i18n/locales/tr_TR.json @@ -439,7 +439,11 @@ "subtitle": "Bilgisayarınızın otomatik varsayılanından ziyade listeden bir zaman dilimi seçin.", "automatic": "Otomatik" }, - "experimental_warning": "Deneysel modunuz açıksa Mue ekibinin destek sağlayamadığını lütfen unutmayın. Lütfen önce devre dışı bırakın ve desteğe başvurmadan önce sorunun devam edip etmediğini görün." + "experimental_warning": "Deneysel modunuz açıksa Mue ekibinin destek sağlayamadığını lütfen unutmayın. Lütfen önce devre dışı bırakın ve desteğe başvurmadan önce sorunun devam edip etmediğini görün.", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "İstatistikler", @@ -541,6 +545,7 @@ "no_quotes": "Alıntı bulunamadı", "version": "Versiyon", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Parçası", "explore": "Keşfet", "buttons": { @@ -548,7 +553,8 @@ "remove": "Kaldır", "update_addon": "Eklentiyi Güncelle", "back": "Geri", - "report": "Raporla" + "report": "Raporla", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API", diff --git a/src/i18n/locales/zh_CN.json b/src/i18n/locales/zh_CN.json index 4d0a467c..a26b143c 100644 --- a/src/i18n/locales/zh_CN.json +++ b/src/i18n/locales/zh_CN.json @@ -439,7 +439,11 @@ "subtitle": "Choose a timezone from the list instead of the automatic default from your computer", "automatic": "自动" }, - "experimental_warning": "请注意 Mue 团队无法提供实验性功能的支持。若您遇到问题,请先关闭实验性功能,再寻求帮助。" + "experimental_warning": "请注意 Mue 团队无法提供实验性功能的支持。若您遇到问题,请先关闭实验性功能,再寻求帮助。", + "preview_data_disabled": { + "title": "Data Settings Disabled", + "description": "Data settings are disabled in preview mode. Please exit preview mode to use this feature." + } }, "stats": { "title": "统计", @@ -541,6 +545,7 @@ "no_quotes": "No. Quotes", "version": "版本", "created_by": "Created by", + "updated_at": "Updated at", "part_of": "Part of", "explore": "Explore", "buttons": { @@ -548,7 +553,8 @@ "remove": "卸载", "update_addon": "Update Add-on", "back": "Back", - "report": "Report" + "report": "Report", + "not_available_preview": "Unavailable on Preview" }, "not_in_language": "This add-on is not in your language", "third_party_api": "This add-on uses a third-party API",