Skip to content

Commit

Permalink
chore(all): i18n some russian comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MarsiBarsi committed Dec 24, 2020
1 parent 9fce5f2 commit 03aea01
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SERIALIZED_SUFFIX = '$';

export type DocumentationPropertyType = 'input' | 'output' | 'input-output' | null;

// @bad TODO: добаботать параметры output, синхронизацию значений
// @bad TODO: refactor output and value sync
@Directive({
selector: 'ng-template[documentationPropertyName]',
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {hexToRgb, rgbToHex} from '../../utils/color-conversion';
import {inspectAny} from '../../utils/inspect';
import {TuiDocDocumentationPropertyConnectorDirective} from './documentation-property-connector.directive';

// @bad TODO отслеживать изменения полей в propertiesConnectors
// @bad TODO subscribe propertiesConnectors changes
// @bad TODO refactor to make more flexible
// @dynamic
@Component({
Expand Down
10 changes: 5 additions & 5 deletions projects/addon-doc/src/utils/inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ function inspectObject(object: {[key: string]: any}, depth: number): string {
return `${prefix}{${result}}`;
}

// @bad TODO добавить больше типов
// @bad TODO add more types
/**
* Выводит в человекочитаемом виде JS сущности.
* @param data сущность
* @param depth глубина
* @return человекочитаемый вид JS сущности
* Returns readable JS entity
* @param data
* @param depth
* @return readable JS entity
*/
export function inspectAny(data: any, depth: number): string {
if (data === null) {
Expand Down
10 changes: 5 additions & 5 deletions projects/core/pipes/format-phone/format-phone.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import {formatPhone} from '@taiga-ui/core/utils/format';
@Pipe({name: 'tuiFormatPhone'})
export class TuiFormatPhonePipe implements PipeTransform {
/**
* Форматирует строку с телефоном формата +7XXXXXXXXXX, добавляя скобки и дефисы
* @param value строка для форматирования
* @param countryCode код страны
* @param phoneMask маска телефона
* @return отформатированная строка телефона вида +7(XXX)XXX-XX-XX
* Formats phone number string of +7XXXXXXXXXX fomrat with adding separator symbols
* @param value
* @param countryCode
* @param phoneMask
* @return formatted phone number string +7(XXX)XXX-XX-XX
*/
transform(
value: string,
Expand Down
6 changes: 3 additions & 3 deletions projects/core/pipes/pluralize/pluralize.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {pluralize} from '@taiga-ui/core/utils/format';
@Pipe({name: 'tuiPluralize'})
export class TuiPluralizePipe implements PipeTransform {
/**
* Выбирает корректную форму множественного числа для отображения количества
* @param value число
* @param args массив из трёх форм множественного числа, например ['год', 'года', 'лет']
* Chooses correct plural form
* @param value
* @param args tuple of three plural forms
*/
transform(value: number, args: TuiPluralize): string {
return pluralize(value, args);
Expand Down
2 changes: 1 addition & 1 deletion projects/core/styles/markup/tui-group.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
}

// @bad TODO: избавиться от использование вспомогательных классов touched, визуальное фокусирование инпутов
// @bad TODO: remove "touched" and "focus-visible"
&._hosted_dropdown_focused,
&._focus-visible,
&._focused.ng-touched,
Expand Down
3 changes: 0 additions & 3 deletions projects/core/styles/mixins/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
}
}

// clearbutton – сброс дефолтного отображения тега <button>
.clearbtn() {
appearance: none;
padding: 0;
Expand All @@ -54,7 +53,6 @@
line-height: inherit;
}

// clearinput – сброс отображения для тега <input>
.clearinput() {
padding: 0;
border: 0;
Expand All @@ -81,7 +79,6 @@
}
}

// визуальное скрытие элемента
.visually-hidden() {
position: absolute;
height: 1px;
Expand Down

0 comments on commit 03aea01

Please sign in to comment.