feat(frontend): add french language file

also expanded translation coverage (still lots to do!)
This commit is contained in:
sct
2020-11-27 05:11:45 +00:00
parent 2aefcfdfb9
commit cd6d8a8216
18 changed files with 749 additions and 111 deletions

View File

@@ -5,6 +5,12 @@ import Sidebar from './Sidebar';
import Notifications from './Notifications';
import LanguagePicker from './LanguagePicker';
import { useRouter } from 'next/router';
import { defineMessages, FormattedMessage } from 'react-intl';
const messages = defineMessages({
alphawarning:
'This is ALPHA software. Almost everything is bound to be nearly broken and/or unstable. Please report issues to the Overseerr Github!',
});
const Layout: React.FC = ({ children }) => {
const [isSidebarOpen, setSidebarOpen] = useState(false);
@@ -70,9 +76,7 @@ const Layout: React.FC = ({ children }) => {
</div>
<div className="ml-3 flex-1 md:flex md:justify-between">
<p className="text-sm leading-5 text-white">
This is ALPHA software. Almost everything is bound to be
nearly broken or unstable. Please report issues to the
Overseerr Github!
<FormattedMessage {...messages.alphawarning} />
</p>
<p className="mt-3 text-sm leading-5 md:mt-0 md:ml-6">
<a