mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
added i18n for repository module
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
"alt": "SCM-Manager"
|
||||
},
|
||||
"primary-navigation": {
|
||||
"repositories": "Repositories",
|
||||
"users": "Users",
|
||||
"logout": "Logout"
|
||||
}
|
||||
|
||||
6
scm-ui/public/locales/en/repositories.json
Normal file
6
scm-ui/public/locales/en/repositories.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"repositories": {
|
||||
"title": "Repositories",
|
||||
"subtitle": "Repositories will be shown here"
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,11 @@ class PrimaryNavigation extends React.Component<Props> {
|
||||
return (
|
||||
<nav className="tabs is-boxed">
|
||||
<ul>
|
||||
<PrimaryNavigationLink
|
||||
to="/"
|
||||
activeOnlyWhenExact={true}
|
||||
label={t("primary-navigation.repositories")}
|
||||
/>
|
||||
<PrimaryNavigationLink
|
||||
to="/users"
|
||||
label={t("primary-navigation.users")}
|
||||
|
||||
@@ -1,27 +1,22 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import React from "react";
|
||||
import Page from "../../components/Page";
|
||||
import { translate } from "react-i18next";
|
||||
|
||||
type Props = {
|
||||
}
|
||||
t: string => string
|
||||
};
|
||||
|
||||
class Repositories extends React.Component<Props> {
|
||||
|
||||
render() {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h1>SCM</h1>
|
||||
<h2>Repositories will be shown here.</h2>
|
||||
<Link to='/users'>Users hier!</Link>
|
||||
</div>
|
||||
)
|
||||
|
||||
|
||||
const { t } = this.props;
|
||||
return (
|
||||
<Page
|
||||
title={t("repositories.title")}
|
||||
subtitle={t("repositories.subtitle")}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default (Repositories);
|
||||
export default translate("repositories")(Repositories);
|
||||
|
||||
Reference in New Issue
Block a user