mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-18 07:51:46 +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",
|
"media": "MEDIA",
|
||||||
"notifications": "NOTIFICATIONS",
|
"notifications": "NOTIFICATIONS",
|
||||||
"testing": "TESTING",
|
"testing": "TESTING",
|
||||||
"danger_zone": "DANGER ZONE"
|
"danger_zone": "DANGER ZONE",
|
||||||
|
"introdb_contribution":"INTRODB CONTRIBUTION"
|
||||||
},
|
},
|
||||||
"items": {
|
"items": {
|
||||||
"legal": "Legal & Disclaimer",
|
"legal": "Legal & Disclaimer",
|
||||||
|
|
@ -1603,5 +1604,14 @@
|
||||||
"dont_have_account":"Dont't have an account?",
|
"dont_have_account":"Dont't have an account?",
|
||||||
"already_have_account":"Already have an account?",
|
"already_have_account":"Already have an account?",
|
||||||
"continue_without_account":"Continue without 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",
|
"media": "MEDIA",
|
||||||
"notifications": "NOTIFICHE",
|
"notifications": "NOTIFICHE",
|
||||||
"testing": "TEST",
|
"testing": "TEST",
|
||||||
"danger_zone": "ZONA PERICOLOSA"
|
"danger_zone": "ZONA PERICOLOSA",
|
||||||
|
"introdb_contribution":"CONTRIBUTI INTRODB"
|
||||||
},
|
},
|
||||||
"items": {
|
"items": {
|
||||||
"legal": "Note Legali & Disclaimer",
|
"legal": "Note Legali & Disclaimer",
|
||||||
|
|
@ -1588,5 +1589,14 @@
|
||||||
"dont_have_account":"Non hai un account?",
|
"dont_have_account":"Non hai un account?",
|
||||||
"already_have_account":"Hai un account?",
|
"already_have_account":"Hai un account?",
|
||||||
"continue_without_account":"Continua senza 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 () => {
|
const handleApiKeySubmit = async () => {
|
||||||
if (!apiKeyInput.trim()) {
|
if (!apiKeyInput.trim()) {
|
||||||
updateSetting('introDbApiKey', '');
|
updateSetting('introDbApiKey', '');
|
||||||
toastService.success(t('settings.items.api_key_cleared', { defaultValue: 'API Key Cleared' }));
|
toastService.success(t('intro_db.api_key_cleared'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -119,9 +119,9 @@ export const PlaybackSettingsContent: React.FC<PlaybackSettingsContentProps> = (
|
||||||
|
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
updateSetting('introDbApiKey', apiKeyInput);
|
updateSetting('introDbApiKey', apiKeyInput);
|
||||||
toastService.success(t('settings.items.api_key_saved', { defaultValue: 'API Key Saved' }));
|
toastService.success(t('intro_db.api_key_saved'));
|
||||||
} else {
|
} 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>
|
</SettingsCard>
|
||||||
|
|
||||||
{/* IntroDB Contribution Section */}
|
{/* 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
|
<SettingItem
|
||||||
title={t('settings.items.enable_intro_submission', { defaultValue: 'Enable Intro Submission' })}
|
title={t('intro_db.enable_submission')}
|
||||||
description={t('settings.items.enable_intro_submission_desc', { defaultValue: 'Contribute timestamps to the community' })}
|
description={t('intro_db.enable_submission_desc')}
|
||||||
icon="flag"
|
icon="flag"
|
||||||
renderControl={() => (
|
renderControl={() => (
|
||||||
<CustomSwitch
|
<CustomSwitch
|
||||||
|
|
@ -291,14 +291,14 @@ export const PlaybackSettingsContent: React.FC<PlaybackSettingsContentProps> = (
|
||||||
{settings?.introSubmitEnabled && (
|
{settings?.introSubmitEnabled && (
|
||||||
<View style={styles.inputContainer}>
|
<View style={styles.inputContainer}>
|
||||||
<Text style={styles.inputLabel}>
|
<Text style={styles.inputLabel}>
|
||||||
{t('settings.items.introdb_api_key', { defaultValue: 'INTRODB API KEY' })}
|
{t('intro_db.api_key')}
|
||||||
</Text>
|
</Text>
|
||||||
<View style={styles.apiKeyRow}>
|
<View style={styles.apiKeyRow}>
|
||||||
<TextInput
|
<TextInput
|
||||||
style={[styles.input, { flex: 1, marginRight: 10, color: currentTheme.colors.highEmphasis }]}
|
style={[styles.input, { flex: 1, marginRight: 10, color: currentTheme.colors.highEmphasis }]}
|
||||||
value={apiKeyInput}
|
value={apiKeyInput}
|
||||||
onChangeText={setApiKeyInput}
|
onChangeText={setApiKeyInput}
|
||||||
placeholder="Enter your API key"
|
placeholder={t('intro_db.enter_api_placeholder')}
|
||||||
placeholderTextColor={currentTheme.colors.mediumEmphasis}
|
placeholderTextColor={currentTheme.colors.mediumEmphasis}
|
||||||
autoCapitalize="none"
|
autoCapitalize="none"
|
||||||
autoCorrect={false}
|
autoCorrect={false}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue