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"
|
"alt": "SCM-Manager"
|
||||||
},
|
},
|
||||||
"primary-navigation": {
|
"primary-navigation": {
|
||||||
|
"repositories": "Repositories",
|
||||||
"users": "Users",
|
"users": "Users",
|
||||||
"logout": "Logout"
|
"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 (
|
return (
|
||||||
<nav className="tabs is-boxed">
|
<nav className="tabs is-boxed">
|
||||||
<ul>
|
<ul>
|
||||||
|
<PrimaryNavigationLink
|
||||||
|
to="/"
|
||||||
|
activeOnlyWhenExact={true}
|
||||||
|
label={t("primary-navigation.repositories")}
|
||||||
|
/>
|
||||||
<PrimaryNavigationLink
|
<PrimaryNavigationLink
|
||||||
to="/users"
|
to="/users"
|
||||||
label={t("primary-navigation.users")}
|
label={t("primary-navigation.users")}
|
||||||
|
|||||||
@@ -1,27 +1,22 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
import Page from "../../components/Page";
|
||||||
import { Link } from 'react-router-dom';
|
import { translate } from "react-i18next";
|
||||||
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
}
|
t: string => string
|
||||||
|
};
|
||||||
|
|
||||||
class Repositories extends React.Component<Props> {
|
class Repositories extends React.Component<Props> {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const { t } = this.props;
|
||||||
return (
|
return (
|
||||||
<div>
|
<Page
|
||||||
<h1>SCM</h1>
|
title={t("repositories.title")}
|
||||||
<h2>Repositories will be shown here.</h2>
|
subtitle={t("repositories.subtitle")}
|
||||||
<Link to='/users'>Users hier!</Link>
|
/>
|
||||||
</div>
|
);
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default (Repositories);
|
export default translate("repositories")(Repositories);
|
||||||
|
|||||||
Reference in New Issue
Block a user