mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(lang): UI string edits, round 2 (#1202)
This commit is contained in:
@@ -4,12 +4,12 @@ import UserDropdown from './UserDropdown';
|
||||
import Sidebar from './Sidebar';
|
||||
import LanguagePicker from './LanguagePicker';
|
||||
import { useRouter } from 'next/router';
|
||||
import { defineMessages, FormattedMessage } from 'react-intl';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
import { Permission, useUser } from '../../hooks/useUser';
|
||||
|
||||
const messages = defineMessages({
|
||||
alphawarning:
|
||||
'This is ALPHA software. Features may be broken and/or unstable. Please report issues on GitHub!',
|
||||
'This is ALPHA software. Features may be broken and/or unstable. Please report any issues on GitHub!',
|
||||
});
|
||||
|
||||
const Layout: React.FC = ({ children }) => {
|
||||
@@ -17,6 +17,7 @@ const Layout: React.FC = ({ children }) => {
|
||||
const [isScrolled, setIsScrolled] = useState(false);
|
||||
const { hasPermission } = useUser();
|
||||
const router = useRouter();
|
||||
const intl = useIntl();
|
||||
|
||||
useEffect(() => {
|
||||
const updateScrolled = () => {
|
||||
@@ -101,7 +102,7 @@ const Layout: React.FC = ({ children }) => {
|
||||
</div>
|
||||
<div className="flex-1 ml-3 md:flex md:justify-between">
|
||||
<p className="text-sm leading-5 text-white">
|
||||
<FormattedMessage {...messages.alphawarning} />
|
||||
{intl.formatMessage(messages.alphawarning)}
|
||||
</p>
|
||||
<p className="mt-3 text-sm leading-5 md:mt-0 md:ml-6">
|
||||
<a
|
||||
|
Reference in New Issue
Block a user