refactor(i18n): add missing git translations #33

This commit is contained in:
Johannes Millan 2019-07-17 02:05:38 +02:00
parent f0844fd644
commit acf538ee64
5 changed files with 15 additions and 16 deletions

View file

@ -2,8 +2,7 @@
import {GithubCfg} from './github';
import {FormlyFieldConfig} from '@ngx-formly/core';
import {T} from '../../../t.const';
import {ConfigFormConfig, ConfigFormSection} from '../../config/global-config.model';
import {GITHUB_TYPE} from '../issue.const';
import {ConfigFormSection} from '../../config/global-config.model';
export const DEFAULT_GITHUB_CFG: GithubCfg = {
repo: null,
@ -55,10 +54,7 @@ export const GITHUB_CONFIG_FORM: FormlyFieldConfig[] = [
export const GITHUB_CONFIG_FORM_SECTION: ConfigFormSection = {
title: 'Github',
key: GITHUB_TYPE,
key: 'GITHUB',
items: GITHUB_CONFIG_FORM,
/* tslint:disable */
help: `<p>Here you can configure SuperProductivity to list open GithHub issues for a specific repository in the task creation panel in the daily planning view. They will be listed as suggestions and will provide a link to the issue as well as more information about it.</p>
<p>In addition you can automatically add and sync all open issues to your task backlog.</p>`,
/* tslint:enable */
help: T.F.GITHUB.FORM_SECTION.HELP,
};

View file

@ -1,12 +1,7 @@
import {ConfigFormConfig} from '../config/global-config.model';
import {
DEFAULT_JIRA_CFG,
JIRA_ADVANCED_FORM_CFG,
JIRA_CONFIG_FORM_SECTION,
JIRA_CREDENTIALS_FORM_CFG
} from './jira/jira.const';
import {DEFAULT_JIRA_CFG, JIRA_CONFIG_FORM_SECTION} from './jira/jira.const';
import {IssueProviderKey} from './issue';
import {DEFAULT_GITHUB_CFG, GITHUB_CONFIG_FORM, GITHUB_CONFIG_FORM_SECTION} from './github/github.const';
import {DEFAULT_GITHUB_CFG, GITHUB_CONFIG_FORM_SECTION} from './github/github.const';
import {T} from '../../t.const';
export const LEGACY_GITHUB_TYPE = 'GIT';

View file

@ -3,7 +3,6 @@ import {JiraCfg} from './jira';
import {FormlyFieldConfig} from '@ngx-formly/core';
import {GITHUB_INITIAL_POLL_DELAY} from '../github/github.const';
import {T} from '../../../t.const';
import {JIRA_TYPE} from '../issue.const';
import {ConfigFormSection} from '../../config/global-config.model';
export const JIRA_DATETIME_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSZZ';
@ -175,7 +174,7 @@ export const JIRA_ADVANCED_FORM_CFG: FormlyFieldConfig[] = [
export const JIRA_CONFIG_FORM_SECTION: ConfigFormSection = {
title: 'Jira',
key: JIRA_TYPE,
key: 'JIRA',
customSection: 'JIRA_CFG',
/* tslint:disable */
help: `<div class="mat-caption">Basic configuration</div>

View file

@ -66,6 +66,10 @@ export const T = {
'IS_SEARCH_ISSUES_FROM_GITHUB': 'F.GITHUB.FORM.IS_SEARCH_ISSUES_FROM_GITHUB',
'REPO': 'F.GITHUB.FORM.REPO'
},
'FORM_SECTION': {
'TITLE': 'F.GITHUB.FORM_SECTION.TITLE',
'HELP': 'F.GITHUB.FORM_SECTION.HELP'
},
'ISSUE_CONTENT': {
'ASSIGNEE': 'F.GITHUB.ISSUE_CONTENT.ASSIGNEE',
'AT': 'F.GITHUB.ISSUE_CONTENT.AT',
@ -90,6 +94,7 @@ export const T = {
},
'JIRA': {
'EXTENSION_INFO': 'F.JIRA.EXTENSION_INFO',
'FORM_HELP': 'F.JIRA.FORM_HELP',
'CFG_CMP': {
'ENABLE': 'F.JIRA.CFG_CMP.ENABLE',
'ENABLE_TRANSITIONS': 'F.JIRA.CFG_CMP.ENABLE_TRANSITIONS',

View file

@ -66,6 +66,10 @@
"IS_SEARCH_ISSUES_FROM_GITHUB": "Show issues from git as suggestions when adding new tasks",
"REPO": "\"username/repositoryName\" for the git repository you want to track"
},
"FORM_SECTION": {
"TITLE": "Github",
"HELP": "<p>Here you can configure SuperProductivity to list open GithHub issues for a specific repository in the task creation panel in the daily planning view. They will be listed as suggestions and will provide a link to the issue as well as more information about it.</p> <p>In addition you can automatically add and sync all open issues to your task backlog.</p>"
},
"ISSUE_CONTENT": {
"ASSIGNEE": "Assignee",
"AT": "at",