Skip to content

Commit

Permalink
fix(i18n): redundant whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Aug 13, 2024
1 parent b3cbe8b commit 1ce99c1
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion projects/i18n/languages/english/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TUI_ENGLISH_LANGUAGE_KIT: TuiLanguageKit = {
defaultLabelMultiple: 'or drop\u00A0them\u00A0here',
defaultLinkSingle: 'Choose a file',
defaultLinkMultiple: 'Choose files',
maxSizeRejectionReason: 'File is larger than ',
maxSizeRejectionReason: 'File is larger than',
formatRejectionReason: 'Wrong file type',
drop: 'Drop file here',
dropMultiple: 'Drop files here',
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/languages/german/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const TUI_GERMAN_LANGUAGE_KIT: TuiLanguageKit = {
defaultLinkSingle: 'Datei auswählen',
defaultLinkMultiple: 'Dateien auswählen',
maxSizeRejectionReason:
'Die Dateigröße überschreitet die maximal zulässige Größe von ',
'Die Dateigröße überschreitet die maximal zulässige Größe von',
formatRejectionReason: 'Ungültiges Dateiformat',
drop: 'Datei hier ablegen',
dropMultiple: 'Dateien hier ablegen',
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/languages/polish/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TUI_POLISH_LANGUAGE_KIT: TuiLanguageKit = {
defaultLabelMultiple: 'lub przeciągnij\u00A0tutaj',
defaultLinkSingle: 'Wybierz plik',
defaultLinkMultiple: 'Wybierz pliki',
maxSizeRejectionReason: 'Plik przekracza rozmiar ',
maxSizeRejectionReason: 'Plik przekracza rozmiar',
formatRejectionReason: 'Nieprawidłowy format pliku',
drop: 'Przeciągnij plik tutaj',
dropMultiple: 'Przeciągnij pliki tutaj',
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/languages/portuguese/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TUI_PORTUGUESE_LANGUAGE_KIT: TuiLanguageKit = {
defaultLabelMultiple: 'ou arraste\u00A0eles\u00A0aqui',
defaultLinkSingle: 'Escolha um arquivo',
defaultLinkMultiple: 'Escolha os arquivos',
maxSizeRejectionReason: 'Arquivo ultrapassa o tamanho ',
maxSizeRejectionReason: 'Arquivo ultrapassa o tamanho',
formatRejectionReason: 'Formato do arquivo inválido',
drop: 'Solte o arquivo aqui',
dropMultiple: 'Solte os arquivos aqui',
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/languages/russian/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TUI_RUSSIAN_LANGUAGE_KIT: TuiLanguageKit = {
defaultLabelMultiple: 'или перетащите\u00A0их\u00A0сюда',
defaultLinkSingle: 'Выберите файл',
defaultLinkMultiple: 'Выберите файлы',
maxSizeRejectionReason: 'Файл превышает объем ',
maxSizeRejectionReason: 'Файл превышает объем',
formatRejectionReason: 'Неверный формат файла',
drop: 'Поместите файл сюда',
dropMultiple: 'Поместите файлы сюда',
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/languages/turkish/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TUI_TURKISH_LANGUAGE_KIT: TuiLanguageKit = {
defaultLabelMultiple: 'veya\u00A0buraya\u00A0sürükleyin',
defaultLinkSingle: 'Dosya seç',
defaultLinkMultiple: 'Dosyaları seç',
maxSizeRejectionReason: 'Dosya boyutu fazla ',
maxSizeRejectionReason: 'Dosya boyutu fazla',
formatRejectionReason: 'Dosya formatı yanlış',
drop: 'Dosyayı buraya bırakın',
dropMultiple: 'Dosyaları buraya bırakın',
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/languages/ukrainian/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TUI_UKRAINIAN_LANGUAGE_KIT: TuiLanguageKit = {
defaultLabelMultiple: 'та перенесіть\u00A0їx\u00A0сюди',
defaultLinkSingle: 'Виберіть файл',
defaultLinkMultiple: 'Виберіть файли',
maxSizeRejectionReason: 'Файл перевищує розмір ',
maxSizeRejectionReason: 'Файл перевищує розмір',
formatRejectionReason: 'Невірний формат файлу',
drop: 'Помістіть файл сюди',
dropMultiple: 'Помістіть файли сюди',
Expand Down
2 changes: 1 addition & 1 deletion projects/i18n/languages/vietnamese/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TUI_VIETNAMESE_LANGUAGE_KIT: TuiLanguageKit = {
defaultLabelMultiple: 'hoặc kéo nó vào đây',
defaultLinkSingle: 'Chọn một tệp',
defaultLinkMultiple: 'Chọn nhiều tệp',
maxSizeRejectionReason: 'Tệp vượt quá kích thước ',
maxSizeRejectionReason: 'Tệp vượt quá kích thước',
formatRejectionReason: 'Tệp sai định dạng',
drop: 'Thả tệp tại đây',
dropMultiple: 'Thả nhiều tệp tại đây',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Inject, Pipe, PipeTransform} from '@angular/core';
import {TuiInjectionTokenType} from '@taiga-ui/cdk';
import {CHAR_NO_BREAK_SPACE, TuiInjectionTokenType} from '@taiga-ui/cdk';
import {TUI_DIGITAL_INFORMATION_UNITS, TUI_INPUT_FILE_TEXTS} from '@taiga-ui/kit/tokens';
import {tuiFormatSize} from '@taiga-ui/kit/utils';
import {combineLatest, Observable} from 'rxjs';
Expand All @@ -22,7 +22,10 @@ export class TuiMaxSizeRejectionErrorPipe implements PipeTransform {
return combineLatest([this.inputFileTexts$, this.units$]).pipe(
map(
([{maxSizeRejectionReason}, units]) =>
`${maxSizeRejectionReason}${tuiFormatSize(units, maxFileSize)}`,
`${maxSizeRejectionReason}${CHAR_NO_BREAK_SPACE}${tuiFormatSize(
units,
maxFileSize,
)}`,
),
);
}
Expand Down

0 comments on commit 1ce99c1

Please sign in to comment.