NagNoUser i18n update

This commit is contained in:
infinite-persistence 2021-12-30 20:42:40 +08:00
parent 39a0beb4ee
commit 5aa6827258
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 2 additions and 11 deletions

View file

@ -2197,6 +2197,7 @@
"Failed to synchronize settings. Wait a while before retrying.": "Failed to synchronize settings. Wait a while before retrying.",
"You are offline. Check your internet connection.": "You are offline. Check your internet connection.",
"A new version of Odysee is available.": "A new version of Odysee is available.",
"Could not get a user ID. Account functions will be unavailable. Try again in a bit.": "Could not get a user ID. Account functions will be unavailable. Try again in a bit.",
"Reset stream": "Reset stream",
"Live stream successfully reset.": "Live stream successfully reset.",
"There was an error resetting the live stream.": "There was an error resetting the live stream.",

View file

@ -1,22 +1,12 @@
// @flow
import { SITE_NAME } from 'config';
import React from 'react';
import Nag from 'component/common/nag';
import I18nMessage from 'component/i18nMessage';
export default function NagNoUser() {
return (
<Nag
type="error"
message={
<I18nMessage
tokens={{
SITE_NAME,
}}
>
Could not get a user ID. Account functions will be unavailable. Try again in a bit.
</I18nMessage>
}
message={__('Could not get a user ID. Account functions will be unavailable. Try again in a bit.')}
actionText={__('Refresh')}
onClick={() => window.location.reload()}
/>