mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 15:32:01 +00:00
IntroDB Settings Screen Localization Fixes and Improvements
This commit is contained in:
parent
da86a1c4e7
commit
0aeb12156e
3 changed files with 30 additions and 10 deletions
|
|
@ -717,7 +717,8 @@
|
|||
"media": "MEDIA",
|
||||
"notifications": "NOTIFICATIONS",
|
||||
"testing": "TESTING",
|
||||
"danger_zone": "DANGER ZONE"
|
||||
"danger_zone": "DANGER ZONE",
|
||||
"introdb_contribution":"INTRODB CONTRIBUTION"
|
||||
},
|
||||
"items": {
|
||||
"legal": "Legal & Disclaimer",
|
||||
|
|
@ -1603,5 +1604,14 @@
|
|||
"dont_have_account":"Dont't have an account?",
|
||||
"already_have_account":"Already have an account?",
|
||||
"continue_without_account":"Continue without an account"
|
||||
},
|
||||
"intro_db":{
|
||||
"enable_submission":"Enable Intro Submission",
|
||||
"enable_submission_desc":"Contribute timestamps to the community",
|
||||
"api_key":"INTRODB API KEY",
|
||||
"enter_api_placeholder":"Enter your API key",
|
||||
"api_key_cleared":"API Key Cleared",
|
||||
"api_key_saved":"API Key Saved",
|
||||
"api_key_invalid":"Invalid API Key"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -702,7 +702,8 @@
|
|||
"media": "MEDIA",
|
||||
"notifications": "NOTIFICHE",
|
||||
"testing": "TEST",
|
||||
"danger_zone": "ZONA PERICOLOSA"
|
||||
"danger_zone": "ZONA PERICOLOSA",
|
||||
"introdb_contribution":"CONTRIBUTI INTRODB"
|
||||
},
|
||||
"items": {
|
||||
"legal": "Note Legali & Disclaimer",
|
||||
|
|
@ -1588,5 +1589,14 @@
|
|||
"dont_have_account":"Non hai un account?",
|
||||
"already_have_account":"Hai un account?",
|
||||
"continue_without_account":"Continua senza account"
|
||||
},
|
||||
"intro_db":{
|
||||
"enable_submission":"Abilita contributi IntroDB",
|
||||
"enable_submission_desc":"Fornisci timestamps alla community",
|
||||
"api_key":"CHIAVE API INTRODB",
|
||||
"enter_api_placeholder":"Inserisci la tua chiave API",
|
||||
"api_key_cleared":"Chiave API cancellata",
|
||||
"api_key_saved":"Chiave API Salvata",
|
||||
"api_key_invalid":"Chiave API non valida"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ export const PlaybackSettingsContent: React.FC<PlaybackSettingsContentProps> = (
|
|||
const handleApiKeySubmit = async () => {
|
||||
if (!apiKeyInput.trim()) {
|
||||
updateSetting('introDbApiKey', '');
|
||||
toastService.success(t('settings.items.api_key_cleared', { defaultValue: 'API Key Cleared' }));
|
||||
toastService.success(t('intro_db.api_key_cleared'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -119,9 +119,9 @@ export const PlaybackSettingsContent: React.FC<PlaybackSettingsContentProps> = (
|
|||
|
||||
if (isValid) {
|
||||
updateSetting('introDbApiKey', apiKeyInput);
|
||||
toastService.success(t('settings.items.api_key_saved', { defaultValue: 'API Key Saved' }));
|
||||
toastService.success(t('intro_db.api_key_saved'));
|
||||
} else {
|
||||
toastService.error(t('settings.items.api_key_invalid', { defaultValue: 'Invalid API Key' }));
|
||||
toastService.error(t('intro_db.api_key_invalid'));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -273,10 +273,10 @@ export const PlaybackSettingsContent: React.FC<PlaybackSettingsContentProps> = (
|
|||
</SettingsCard>
|
||||
|
||||
{/* IntroDB Contribution Section */}
|
||||
<SettingsCard title={t('settings.sections.introdb_contribution', { defaultValue: 'IntroDB Contribution' })} isTablet={isTablet}>
|
||||
<SettingsCard title={t('settings.sections.introdb_contribution')} isTablet={isTablet}>
|
||||
<SettingItem
|
||||
title={t('settings.items.enable_intro_submission', { defaultValue: 'Enable Intro Submission' })}
|
||||
description={t('settings.items.enable_intro_submission_desc', { defaultValue: 'Contribute timestamps to the community' })}
|
||||
title={t('intro_db.enable_submission')}
|
||||
description={t('intro_db.enable_submission_desc')}
|
||||
icon="flag"
|
||||
renderControl={() => (
|
||||
<CustomSwitch
|
||||
|
|
@ -291,14 +291,14 @@ export const PlaybackSettingsContent: React.FC<PlaybackSettingsContentProps> = (
|
|||
{settings?.introSubmitEnabled && (
|
||||
<View style={styles.inputContainer}>
|
||||
<Text style={styles.inputLabel}>
|
||||
{t('settings.items.introdb_api_key', { defaultValue: 'INTRODB API KEY' })}
|
||||
{t('intro_db.api_key')}
|
||||
</Text>
|
||||
<View style={styles.apiKeyRow}>
|
||||
<TextInput
|
||||
style={[styles.input, { flex: 1, marginRight: 10, color: currentTheme.colors.highEmphasis }]}
|
||||
value={apiKeyInput}
|
||||
onChangeText={setApiKeyInput}
|
||||
placeholder="Enter your API key"
|
||||
placeholder={t('intro_db.enter_api_placeholder')}
|
||||
placeholderTextColor={currentTheme.colors.mediumEmphasis}
|
||||
autoCapitalize="none"
|
||||
autoCorrect={false}
|
||||
|
|
|
|||
Loading…
Reference in a new issue