Localization of the View (#2165)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2022-06-29 09:54:47 +03:00 committed by GitHub
parent 865ec05909
commit 4d42059ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 7 deletions

View File

@ -14,7 +14,7 @@
-->
<script lang="ts">
import { IssuesDateModificationPeriod, IssuesGrouping, IssuesOrdering, ViewOptions } from '@anticrm/tracker'
import { Button, eventToHTMLElement, IconDownOutline, showPopup } from '@anticrm/ui'
import { Button, eventToHTMLElement, IconDownOutline, showPopup, Label } from '@anticrm/ui'
import { getViewOptions, setViewOptions } from '@anticrm/view-resources'
import view, { Viewlet } from '@anticrm/view'
@ -56,7 +56,7 @@
>
<svelte:fragment slot="content">
<div class="flex-row-center clear-mins pointer-events-none">
<span class="text-sm font-medium">View</span>
<span class="text-sm font-medium"><Label label={view.string.View} /></span>
<div class="icon"><IconDownOutline size={'full'} /></div>
</div>
</svelte:fragment>

View File

@ -47,6 +47,7 @@
"AnyFilter": "any filter",
"AllFilters": "all filters",
"MatchCriteria": "Match criteria",
"DontMatchCriteria": "Don't match criteria"
"DontMatchCriteria": "Don't match criteria",
"View": "View"
}
}

View File

@ -45,6 +45,7 @@
"AnyFilter": "любому фильтру",
"AllFilters": "всем фильтрам",
"MatchCriteria": "Соответсвует условию",
"DontMatchCriteria": "Не соответвует условию"
"DontMatchCriteria": "Не соответвует условию",
"View": "Вид"
}
}

View File

@ -13,7 +13,7 @@
// limitations under the License.
-->
<script lang="ts">
import { Button, showPopup, IconDownOutline } from '@anticrm/ui'
import { Button, showPopup, IconDownOutline, Label } from '@anticrm/ui'
import { Viewlet } from '@anticrm/view'
import ViewletSetting from './ViewletSetting.svelte'
import view from '../plugin'
@ -36,7 +36,7 @@
>
<svelte:fragment slot="content">
<div class="flex-row-center clear-mins pointer-events-none">
<span class="text-sm font-medium">View</span>
<span class="text-sm font-medium"><Label label={view.string.View} /></span>
<div class="icon"><IconDownOutline size={'full'} /></div>
</div>
</svelte:fragment>

View File

@ -449,7 +449,8 @@ const view = plugin(viewId, {
},
string: {
CustomizeView: '' as IntlString,
LabelNA: '' as IntlString
LabelNA: '' as IntlString,
View: '' as IntlString
},
icon: {
Table: '' as Asset,