{
};
const P2pDataPathSettings = ({ p2pDataPathRef }: SettingsProps) => {
+ const { t } = useTranslation();
const pkcRpc = usePkcRpcSettings();
const { pkcRpcSettings } = pkcRpc || {};
const isConnectedToRpc = pkcRpc?.state === 'connected';
@@ -199,7 +205,7 @@ const P2pDataPathSettings = ({ p2pDataPathRef }: SettingsProps) => {
autoCapitalize='off'
spellCheck='false'
type='text'
- aria-label='P2P data path'
+ aria-label={t('advanced_p2p_data_path_aria')}
defaultValue={path}
disabled={!isConnectedToRpc}
ref={p2pDataPathRef}
@@ -220,7 +226,7 @@ const PureP2PBrowserSettings = ({ onPureP2PBrowserChange, pureP2PBrowserEnabled,
onPureP2PBrowserChange?.(event.currentTarget.checked)}
@@ -318,14 +324,14 @@ const AdvancedSettings = () => {
pkcOptions,
});
if (pureP2PBrowserPreference !== undefined) setPureP2PBrowserPreference(pureP2PBrowserPreference);
- alert('Options saved, reloading...');
+ alert(t('advanced_options_saved_reloading'));
window.location.reload();
} catch (e) {
if (e instanceof Error) {
- alert('Error saving options: ' + e.message);
+ alert(t('advanced_error_saving_options', { message: e.message }));
console.log(e);
} else {
- alert('Error');
+ alert(t('error'));
}
}
};
@@ -335,13 +341,13 @@ const AdvancedSettings = () => {
{shouldShowGatewayModeSettings ? (
<>
- IPFS gateways:
+ {t('advanced_ipfs_gateways')}
-
pubsub providers:
+
{t('advanced_pubsub_providers')}
@@ -349,28 +355,28 @@ const AdvancedSettings = () => {
>
) : null}
- http routers:
+ {t('advanced_http_routers')}
- blockchain providers:
+ {t('advanced_blockchain_providers')}
-
Full node WebSocket RPC:
+
{t('advanced_full_node_websocket_rpc')}
{isElectron && (
-
p2p data path:
+
{t('advanced_p2p_data_path')}