mirror of
https://github.com/bakhirev/assayo.git
synced 2024-11-16 16:21:41 +00:00
Update default title from Russian to English
The default title and placeholder text in the application have been changed from 'Git статистика' to 'Git Statistics'. This change was made in the getTitle function and in the Settings component.
This commit is contained in:
parent
feea68e057
commit
33b9b0e27a
|
@ -45,7 +45,7 @@ function getFormattedType(dataGrip: any): string {
|
||||||
|
|
||||||
export default function getTitle(dataGrip: any, commits: any) {
|
export default function getTitle(dataGrip: any, commits: any) {
|
||||||
if (!commits.length) {
|
if (!commits.length) {
|
||||||
return 'Git статистика';
|
return 'Git Statistics';
|
||||||
}
|
}
|
||||||
|
|
||||||
const type = getFormattedType(dataGrip) || '';
|
const type = getFormattedType(dataGrip) || '';
|
||||||
|
|
|
@ -19,10 +19,10 @@ const Common = observer((): React.ReactElement | null => {
|
||||||
<InputString
|
<InputString
|
||||||
title="page.settings.document.name"
|
title="page.settings.document.name"
|
||||||
value={title}
|
value={title}
|
||||||
placeholder="Git статистика"
|
placeholder="Git Statistics"
|
||||||
onChange={(value: string) => {
|
onChange={(value: string) => {
|
||||||
setTitle(value);
|
setTitle(value);
|
||||||
document.title = value || 'Git статистика';
|
document.title = value || 'Git Statistics';
|
||||||
applicationHasCustom.title = true;
|
applicationHasCustom.title = true;
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue