From 2f491f5fbce03c0164dce2142f7dbf365b4b12ff Mon Sep 17 00:00:00 2001 From: Tautvydas Duda Date: Sat, 2 Mar 2019 22:56:10 +0200 Subject: [PATCH 1/3] interface for DateTime strings --- src/loc/mystrings.d.ts | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/src/loc/mystrings.d.ts b/src/loc/mystrings.d.ts index 23b11b9fc..848172cfd 100644 --- a/src/loc/mystrings.d.ts +++ b/src/loc/mystrings.d.ts @@ -14,7 +14,7 @@ declare interface IControlStrings { ListViewGroupEmptyLabel: string; WebPartTitlePlaceholder: string; WebPartTitleLabel: string; - DateTime: { [key: string]: string }; + DateTime: IDateTimeStrings; SendEmailTo: string; StartChatWith: string; Contact: string; @@ -39,8 +39,8 @@ declare interface IControlStrings { ListItemAttachmentsdialogOKbuttonLabel: string; ListItemAttachmentsdialogCancelButtonLabel: string; ListItemAttachmentsdialogOKbuttonLabelOnDelete: string; - ListItemAttachmentsuploadAttachmentDialogTitle:string; - ListItemAttachmentsuploadAttachmentButtonLabel:string; + ListItemAttachmentsuploadAttachmentDialogTitle: string; + ListItemAttachmentsuploadAttachmentButtonLabel: string; ListItemAttachmentsuploadAttachmentErrorMsg: String; ListItemAttachmentsCommandBarAddAttachmentLabel: string; ListItemAttachmentsloadingMessage: string; @@ -54,6 +54,33 @@ declare interface IControlStrings { mapsTitlePrefix: string; } +declare interface IDateTimeStrings { + L_RelativeDateTime_AFewSecondsFuture: string; + L_RelativeDateTime_AFewSeconds: string; + L_RelativeDateTime_AboutAMinuteFuture: string; + L_RelativeDateTime_AboutAMinute: string; + L_RelativeDateTime_XMinutesFuture: string; + L_RelativeDateTime_XMinutes: string; + L_RelativeDateTime_XMinutesFutureIntervals: string; + L_RelativeDateTime_XMinutesIntervals: string; + L_RelativeDateTime_AboutAnHourFuture: string; + L_RelativeDateTime_AboutAnHour: string; + L_RelativeDateTime_Tomorrow: string; + L_RelativeDateTime_Yesterday: string; + L_RelativeDateTime_TomorrowAndTime: string; + L_RelativeDateTime_YesterdayAndTime: string; + L_RelativeDateTime_XHoursFuture: string; + L_RelativeDateTime_XHours: string; + L_RelativeDateTime_XHoursFutureIntervals: string; + L_RelativeDateTime_XHoursIntervals: string; + L_RelativeDateTime_DayAndTime: string; + L_RelativeDateTime_XDaysFuture: string; + L_RelativeDateTime_XDays: string; + L_RelativeDateTime_XDaysFutureIntervals: string; + L_RelativeDateTime_XDaysIntervals: string; + L_RelativeDateTime_Today: string; +} + declare module 'ControlStrings' { const strings: IControlStrings; export = strings; From c46e98ece298382f2c47d2342734e1523a537651 Mon Sep 17 00:00:00 2001 From: Tautvydas Duda Date: Sat, 2 Mar 2019 23:19:05 +0200 Subject: [PATCH 2/3] translations --- src/loc/lt-lt.ts | 85 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/loc/lt-lt.ts diff --git a/src/loc/lt-lt.ts b/src/loc/lt-lt.ts new file mode 100644 index 000000000..1f322eeb9 --- /dev/null +++ b/src/loc/lt-lt.ts @@ -0,0 +1,85 @@ +declare var define: any; + +define([], () => { + return { + 'SiteBreadcrumbLabel': 'Svetainės navigacijos grandinė', + + 'ListViewGroupEmptyLabel': 'Nenurodyta', + + 'WebPartTitlePlaceholder': 'Puslapio dalies antraštė', + 'WebPartTitleLabel': 'Pridėti antraštę', + + "DateTime": { + "L_RelativeDateTime_AFewSecondsFuture": "po kelių sekundžių", + "L_RelativeDateTime_AFewSeconds": "prieš kelias sekundes", + "L_RelativeDateTime_AboutAMinuteFuture": "maždaug po minutės", + "L_RelativeDateTime_AboutAMinute": "beveik prieš minutę", + "L_RelativeDateTime_XMinutesFuture": "po {0} min.", + "L_RelativeDateTime_XMinutes": "prieš {0} min.", + "L_RelativeDateTime_XMinutesFutureIntervals": "0-", + "L_RelativeDateTime_XMinutesIntervals": "0-", + "L_RelativeDateTime_AboutAnHourFuture": "maždaug po valandos", + "L_RelativeDateTime_AboutAnHour": "beveik prieš valandą", + "L_RelativeDateTime_Tomorrow": "rytoj", + "L_RelativeDateTime_Yesterday": "vakar", + "L_RelativeDateTime_TomorrowAndTime": "rytoj, {0}", + "L_RelativeDateTime_YesterdayAndTime": "vakar, {0}", + "L_RelativeDateTime_XHoursFuture": "po {0} val.", + "L_RelativeDateTime_XHours": "prieš {0} val.", + "L_RelativeDateTime_XHoursFutureIntervals": "0-", + "L_RelativeDateTime_XHoursIntervals": "0-", + "L_RelativeDateTime_DayAndTime": "{0}, {1}", + "L_RelativeDateTime_XDaysFuture": "po {0} d.", + "L_RelativeDateTime_XDays": "prieš {0} d.", + "L_RelativeDateTime_XDaysFutureIntervals": "0-", + "L_RelativeDateTime_XDaysIntervals": "0-", + "L_RelativeDateTime_Today": "šiandien" + }, + "SendEmailTo": "Siųsti el. laišką {0}", + "StartChatWith": "Pradėti pokalbį su {0}", + "Contact": "Kontaktas", + "UpdateProfile": "Atnaujinti profilį", + + "TaxonomyPickerNoTerms": "Terminų rinkinys tuščias", + "TaxonomyPickerExpandTitle": "Išskleisti terminų rinkinį", + "TaxonomyPickerMenuTermSet": "Terminų rinkinio meniu", + "TaxonomyPickerInLabel": "", + "TaxonomyPickerTermSetLabel": "Terminų rinkinys", + + peoplePickerComponentTooltipMessage: "Pasirinkite naudotojus", + peoplePickerComponentErrorMessage: "Privalomas laukas", + peoplePickerSuggestionsHeaderText: 'Pasiūlymai', + peoplePickerLoadingText: 'Įkeliama', + PeoplePickerSearchText: 'Ieškoma naudotojų', + PeoplePickerGroupNotFound: "Grupės nepavyko rasti.", + + genericNoResultsFoundText: 'Rezultatų nėra', + + ListItemPickerSelectValue: 'Pasirinkite reikšmę', + ListItemAttachmentsActionDeleteIconTitle: 'Naikinti', + ListItemAttachmentsactionDeleteTitle: 'Naikinti', + ListItemAttachmentsfileDeletedMsg: 'Failas „{0}“ panaikintas', + ListItemAttachmentsfileDeleteError: 'Klaida naikinant failą „{0}“: {1}', + ListItemAttachmentserrorLoadAttachments: 'Nepavyko įkelti elemento priedų infomacijos: {0}', + ListItemAttachmentsconfirmDelete: 'Ar tikrai norite priedą „{0}“ siųsti į svetainės šiukšlinę?', + ListItemAttachmentsdialogTitle: 'Elemento priedai', + ListItemAttachmentsdialogOKbuttonLabel: 'Gerai', + ListItemAttachmentsdialogCancelButtonLabel: 'Atšaukti', + ListItemAttachmentsdialogOKbuttonLabelOnDelete: 'Naikinti', + ListItemAttachmentsuploadAttachmentDialogTitle: 'Įkelti priedą', + ListItemAttachmentsuploadAttachmentButtonLabel: 'Įkelti priedą', + ListItemAttachmentsuploadAttachmentErrorMsg: 'Failo „{0}“ įkelti nepavyko: {1}', + ListItemAttachmentsCommandBarAddAttachmentLabel: 'Įkelti priedą', + ListItemAttachmentsloadingMessage: 'Failas siunčiamas...', + ListItemAttachmentslPlaceHolderIconText: 'Elemento priedai', + ListItemAttachmentslPlaceHolderDescription: 'Please Add Attachment', + ListItemAttachmentslPlaceHolderButtonLabel: 'Pridėti', + + mapsErrorMessage: 'Įkeliant žemėlapį įvyko klaida', + mapsLoadingText: 'Įkeliama', + mapsSearchButtonText: 'Paieška', + mapsTitlePrefix: 'Žemėlapis', + + ListViewFilterLabel: "Filtruoti" + }; +}); From ceaa551fd5bbe039087f03d19e70fd8b5780368f Mon Sep 17 00:00:00 2001 From: Tautvydas Duda Date: Sat, 2 Mar 2019 23:19:05 +0200 Subject: [PATCH 3/3] use coresponding resource --- src/controls/peoplepicker/PeoplePickerComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/peoplepicker/PeoplePickerComponent.tsx b/src/controls/peoplepicker/PeoplePickerComponent.tsx index 1580871ca..30289451c 100644 --- a/src/controls/peoplepicker/PeoplePickerComponent.tsx +++ b/src/controls/peoplepicker/PeoplePickerComponent.tsx @@ -73,7 +73,7 @@ export class PeoplePicker extends React.Component