From 83b90b7dea22b0250e44834b4158d9dcd7463861 Mon Sep 17 00:00:00 2001 From: kabrunko-dev Date: Sat, 27 Jan 2024 09:19:54 -0300 Subject: [PATCH] docs: translate challenges 55 to 112 --- .../README.ja.md | 2 +- .../README.md | 2 +- .../README.pt-BR.md | 13 ++++++++++ .../README.zh-CN.md | 2 +- .../info.pt-BR.yml | 6 +++++ .../00057-hard-get-required/README.ja.md | 2 +- questions/00057-hard-get-required/README.md | 2 +- .../00057-hard-get-required/README.pt-BR.md | 13 ++++++++++ .../00057-hard-get-required/README.zh-CN.md | 2 +- .../00057-hard-get-required/info.pt-BR.yml | 8 +++++++ .../00059-hard-get-optional/README.ja.md | 2 +- questions/00059-hard-get-optional/README.md | 2 +- .../00059-hard-get-optional/README.pt-BR.md | 13 ++++++++++ .../00059-hard-get-optional/README.zh-CN.md | 2 +- .../00059-hard-get-optional/info.pt-BR.yml | 8 +++++++ .../00062-medium-type-lookup/README.ja.md | 2 +- .../00062-medium-type-lookup/README.ko.md | 2 +- questions/00062-medium-type-lookup/README.md | 2 +- .../00062-medium-type-lookup/README.pt-BR.md | 24 +++++++++++++++++++ .../00062-medium-type-lookup/README.zh-CN.md | 2 +- .../00062-medium-type-lookup/info.pt-BR.yml | 6 +++++ .../00089-hard-required-keys/README.ja.md | 2 +- questions/00089-hard-required-keys/README.md | 2 +- .../00089-hard-required-keys/README.pt-BR.md | 14 +++++++++++ .../00089-hard-required-keys/README.zh-CN.md | 2 +- .../00089-hard-required-keys/info.pt-BR.yml | 7 ++++++ .../00090-hard-optional-keys/README.ja.md | 2 +- questions/00090-hard-optional-keys/README.md | 2 +- .../00090-hard-optional-keys/README.pt-BR.md | 7 ++++++ .../00090-hard-optional-keys/README.zh-CN.md | 2 +- .../00090-hard-optional-keys/info.pt-BR.yml | 7 ++++++ questions/00106-medium-trimleft/README.ja.md | 2 +- questions/00106-medium-trimleft/README.ko.md | 2 +- questions/00106-medium-trimleft/README.md | 2 +- .../00106-medium-trimleft/README.pt-BR.md | 13 ++++++++++ .../00106-medium-trimleft/README.zh-CN.md | 2 +- .../00106-medium-trimleft/info.pt-BR.yml | 8 +++++++ questions/00108-medium-trim/README.ja.md | 2 +- questions/00108-medium-trim/README.ko.md | 2 +- questions/00108-medium-trim/README.md | 2 +- questions/00108-medium-trim/README.pt-BR.md | 13 ++++++++++ questions/00108-medium-trim/README.zh-CN.md | 2 +- questions/00108-medium-trim/info.pt-BR.yml | 8 +++++++ .../00110-medium-capitalize/README.ja.md | 2 +- .../00110-medium-capitalize/README.ko.md | 2 +- questions/00110-medium-capitalize/README.md | 2 +- .../00110-medium-capitalize/README.pt-BR.md | 13 ++++++++++ .../00110-medium-capitalize/README.zh-CN.md | 2 +- .../00110-medium-capitalize/info.pt-BR.yml | 6 +++++ .../00112-hard-capitalizewords/README.ja.md | 2 +- .../00112-hard-capitalizewords/README.md | 2 +- .../README.pt-BR.md | 13 ++++++++++ .../README.zh-CN.md | 2 +- .../00112-hard-capitalizewords/info.pt-BR.yml | 6 +++++ 54 files changed, 240 insertions(+), 34 deletions(-) create mode 100644 questions/00055-hard-union-to-intersection/README.pt-BR.md create mode 100644 questions/00055-hard-union-to-intersection/info.pt-BR.yml create mode 100644 questions/00057-hard-get-required/README.pt-BR.md create mode 100644 questions/00057-hard-get-required/info.pt-BR.yml create mode 100644 questions/00059-hard-get-optional/README.pt-BR.md create mode 100644 questions/00059-hard-get-optional/info.pt-BR.yml create mode 100644 questions/00062-medium-type-lookup/README.pt-BR.md create mode 100644 questions/00062-medium-type-lookup/info.pt-BR.yml create mode 100644 questions/00089-hard-required-keys/README.pt-BR.md create mode 100644 questions/00089-hard-required-keys/info.pt-BR.yml create mode 100644 questions/00090-hard-optional-keys/README.pt-BR.md create mode 100644 questions/00090-hard-optional-keys/info.pt-BR.yml create mode 100644 questions/00106-medium-trimleft/README.pt-BR.md create mode 100644 questions/00106-medium-trimleft/info.pt-BR.yml create mode 100644 questions/00108-medium-trim/README.pt-BR.md create mode 100644 questions/00108-medium-trim/info.pt-BR.yml create mode 100644 questions/00110-medium-capitalize/README.pt-BR.md create mode 100644 questions/00110-medium-capitalize/info.pt-BR.yml create mode 100644 questions/00112-hard-capitalizewords/README.pt-BR.md create mode 100644 questions/00112-hard-capitalizewords/info.pt-BR.yml diff --git a/questions/00055-hard-union-to-intersection/README.ja.md b/questions/00055-hard-union-to-intersection/README.ja.md index 58a3061a9..989a09a29 100644 --- a/questions/00055-hard-union-to-intersection/README.ja.md +++ b/questions/00055-hard-union-to-intersection/README.ja.md @@ -1,4 +1,4 @@ -

Union to Intersection 上級 #utils #infer

by Zheeeng @zheeeng

挑戦する    English 简体中文

+

Union to Intersection 上級 #utils #infer

by Zheeeng @zheeeng

挑戦する    English 简体中文 Português (BR)

高度なユーティリティ型 `UnionToIntersection` を実装してください。 diff --git a/questions/00055-hard-union-to-intersection/README.md b/questions/00055-hard-union-to-intersection/README.md index 34f6ed0af..36573fa84 100644 --- a/questions/00055-hard-union-to-intersection/README.md +++ b/questions/00055-hard-union-to-intersection/README.md @@ -1,4 +1,4 @@ -

Union to Intersection hard #utils #infer

by Zheeeng @zheeeng

Take the Challenge    简体中文 日本語

+

Union to Intersection hard #utils #infer

by Zheeeng @zheeeng

Take the Challenge    简体中文 日本語 Português (BR)

Implement the advanced util type `UnionToIntersection` diff --git a/questions/00055-hard-union-to-intersection/README.pt-BR.md b/questions/00055-hard-union-to-intersection/README.pt-BR.md new file mode 100644 index 000000000..8cc1830a1 --- /dev/null +++ b/questions/00055-hard-union-to-intersection/README.pt-BR.md @@ -0,0 +1,13 @@ +

União para Interseção difícil #utils #infer

by Zheeeng @zheeeng

Fazer o Desafio    English 简体中文 日本語

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente o tipo de utilitário avançado `UnionToIntersection` + +Por exemplo + +```ts +type I = UnionToIntersection<'foo' | 42 | true> // expected to be 'foo' & 42 & true +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções \ No newline at end of file diff --git a/questions/00055-hard-union-to-intersection/README.zh-CN.md b/questions/00055-hard-union-to-intersection/README.zh-CN.md index 33edec016..c56a31e5d 100644 --- a/questions/00055-hard-union-to-intersection/README.zh-CN.md +++ b/questions/00055-hard-union-to-intersection/README.zh-CN.md @@ -1,4 +1,4 @@ -

联合类型转化为交叉类型 困难 #utils #infer

by Zheeeng @zheeeng

接受挑战    English 日本語

+

联合类型转化为交叉类型 困难 #utils #infer

by Zheeeng @zheeeng

接受挑战    English 日本語 Português (BR)

实现高级工具类型 `UnionToIntersection` diff --git a/questions/00055-hard-union-to-intersection/info.pt-BR.yml b/questions/00055-hard-union-to-intersection/info.pt-BR.yml new file mode 100644 index 000000000..e8aa15cd3 --- /dev/null +++ b/questions/00055-hard-union-to-intersection/info.pt-BR.yml @@ -0,0 +1,6 @@ +difficulty: difícil +title: União para Interseção +tags: 'utils, infer' +author: + github: zheeeng + name: Zheeeng diff --git a/questions/00057-hard-get-required/README.ja.md b/questions/00057-hard-get-required/README.ja.md index fcfe9728e..1cbb8feec 100644 --- a/questions/00057-hard-get-required/README.ja.md +++ b/questions/00057-hard-get-required/README.ja.md @@ -1,4 +1,4 @@ -

Get Required 上級 #utils #infer

by Zheeeng @zheeeng

挑戦する    English 简体中文

+

Get Required 上級 #utils #infer

by Zheeeng @zheeeng

挑戦する    English 简体中文 Português (BR)

必須なフィールドのみを残す高度なユーティリティ型 `GetRequired` を実装してください。 diff --git a/questions/00057-hard-get-required/README.md b/questions/00057-hard-get-required/README.md index 35aa2d64e..44e23c4b5 100644 --- a/questions/00057-hard-get-required/README.md +++ b/questions/00057-hard-get-required/README.md @@ -1,4 +1,4 @@ -

Get Required hard #utils #infer

by Zheeeng @zheeeng

Take the Challenge    简体中文 日本語

+

Get Required hard #utils #infer

by Zheeeng @zheeeng

Take the Challenge    简体中文 日本語 Português (BR)

Implement the advanced util type `GetRequired`, which remains all the required fields diff --git a/questions/00057-hard-get-required/README.pt-BR.md b/questions/00057-hard-get-required/README.pt-BR.md new file mode 100644 index 000000000..cb552aaf5 --- /dev/null +++ b/questions/00057-hard-get-required/README.pt-BR.md @@ -0,0 +1,13 @@ +

Obter Obrigatório difícil #utils #infer

by Zheeeng @zheeeng

Fazer o Desafio    English 简体中文 日本語

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente o tipo de utilitário avançado `GetRequired`, que mantém todos os campos obrigatórios + +Por exemplo + +```ts +type I = GetRequired<{ foo: number, bar?: string }> // expected to be { foo: number } +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções

Desafios Relacionados

59・Obter Opcional \ No newline at end of file diff --git a/questions/00057-hard-get-required/README.zh-CN.md b/questions/00057-hard-get-required/README.zh-CN.md index 63a4b274f..9bb40ba17 100644 --- a/questions/00057-hard-get-required/README.zh-CN.md +++ b/questions/00057-hard-get-required/README.zh-CN.md @@ -1,4 +1,4 @@ -

获得必需的属性 困难 #utils #infer

by Zheeeng @zheeeng

接受挑战    English 日本語

+

获得必需的属性 困难 #utils #infer

by Zheeeng @zheeeng

接受挑战    English 日本語 Português (BR)

实现高级工具类型 `GetRequired`,该类型保留所有必需的属性 diff --git a/questions/00057-hard-get-required/info.pt-BR.yml b/questions/00057-hard-get-required/info.pt-BR.yml new file mode 100644 index 000000000..b7aff3103 --- /dev/null +++ b/questions/00057-hard-get-required/info.pt-BR.yml @@ -0,0 +1,8 @@ +difficulty: difícil +title: Obter Obrigatório +tags: utils, infer +author: + github: zheeeng + name: Zheeeng + +related: 59 diff --git a/questions/00059-hard-get-optional/README.ja.md b/questions/00059-hard-get-optional/README.ja.md index f3f3bc93e..5bda06155 100644 --- a/questions/00059-hard-get-optional/README.ja.md +++ b/questions/00059-hard-get-optional/README.ja.md @@ -1,4 +1,4 @@ -

Get Optional 上級 #utils #infer

by Zheeeng @zheeeng

挑戦する    English 简体中文

+

Get Optional 上級 #utils #infer

by Zheeeng @zheeeng

挑戦する    English 简体中文 Português (BR)

オプショナルなフィールドのみを残す高度なユーティリティ型 `GetOptional` を実装してください。 diff --git a/questions/00059-hard-get-optional/README.md b/questions/00059-hard-get-optional/README.md index 6c8dbdc05..6aafc99d7 100644 --- a/questions/00059-hard-get-optional/README.md +++ b/questions/00059-hard-get-optional/README.md @@ -1,4 +1,4 @@ -

Get Optional hard #utils #infer

by Zheeeng @zheeeng

Take the Challenge    简体中文 日本語

+

Get Optional hard #utils #infer

by Zheeeng @zheeeng

Take the Challenge    简体中文 日本語 Português (BR)

Implement the advanced util type `GetOptional`, which remains all the optional fields diff --git a/questions/00059-hard-get-optional/README.pt-BR.md b/questions/00059-hard-get-optional/README.pt-BR.md new file mode 100644 index 000000000..7c353498c --- /dev/null +++ b/questions/00059-hard-get-optional/README.pt-BR.md @@ -0,0 +1,13 @@ +

Obter Opcional difícil #utils #infer

by Zheeeng @zheeeng

Fazer o Desafio    English 简体中文 日本語

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente o tipo de utilitário avançado `GetOptional`, que permanece com todos os campos opcionais + +Por exemplo + +```ts +type I = GetOptional<{ foo: number, bar?: string }> // expected to be { bar?: string } +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções

Desafios Relacionados

57・Obter Obrigatório \ No newline at end of file diff --git a/questions/00059-hard-get-optional/README.zh-CN.md b/questions/00059-hard-get-optional/README.zh-CN.md index 82aac1191..353ad8f3d 100644 --- a/questions/00059-hard-get-optional/README.zh-CN.md +++ b/questions/00059-hard-get-optional/README.zh-CN.md @@ -1,4 +1,4 @@ -

获得可选属性 困难 #utils #infer

by Zheeeng @zheeeng

接受挑战    English 日本語

+

获得可选属性 困难 #utils #infer

by Zheeeng @zheeeng

接受挑战    English 日本語 Português (BR)

实现高级工具类型 `GetOptional`,该类型保留所有可选属性 diff --git a/questions/00059-hard-get-optional/info.pt-BR.yml b/questions/00059-hard-get-optional/info.pt-BR.yml new file mode 100644 index 000000000..bf96424e6 --- /dev/null +++ b/questions/00059-hard-get-optional/info.pt-BR.yml @@ -0,0 +1,8 @@ +difficulty: difícil +title: Obter Opcional +tags: utils, infer +author: + github: zheeeng + name: Zheeeng + +related: 57 diff --git a/questions/00062-medium-type-lookup/README.ja.md b/questions/00062-medium-type-lookup/README.ja.md index 1cdc330d2..f66ee2180 100644 --- a/questions/00062-medium-type-lookup/README.ja.md +++ b/questions/00062-medium-type-lookup/README.ja.md @@ -1,4 +1,4 @@ -

Type Lookup 中級 #union #map

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어

+

Type Lookup 中級 #union #map

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어 Português (BR)

Union 型から特定の型を属性を使って取得したいことがあります。 diff --git a/questions/00062-medium-type-lookup/README.ko.md b/questions/00062-medium-type-lookup/README.ko.md index d9c9ed097..e406c9e00 100644 --- a/questions/00062-medium-type-lookup/README.ko.md +++ b/questions/00062-medium-type-lookup/README.ko.md @@ -1,4 +1,4 @@ -

Type Lookup 보통 #union #map

by Anthony Fu @antfu

도전하기    English 简体中文 日本語

+

Type Lookup 보통 #union #map

by Anthony Fu @antfu

도전하기    English 简体中文 日本語 Português (BR)

때때로 유니온 타입의 특정 속성을 기준으로 조회할 수도 있습니다. diff --git a/questions/00062-medium-type-lookup/README.md b/questions/00062-medium-type-lookup/README.md index bac363595..a8cfb5946 100644 --- a/questions/00062-medium-type-lookup/README.md +++ b/questions/00062-medium-type-lookup/README.md @@ -1,4 +1,4 @@ -

Type Lookup medium #union #map

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어

+

Type Lookup medium #union #map

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어 Português (BR)

Sometimes, you may want to look up a type in a union by its attributes. diff --git a/questions/00062-medium-type-lookup/README.pt-BR.md b/questions/00062-medium-type-lookup/README.pt-BR.md new file mode 100644 index 000000000..77f62fb5b --- /dev/null +++ b/questions/00062-medium-type-lookup/README.pt-BR.md @@ -0,0 +1,24 @@ +

Tipo Lookup médio #union #map

by Anthony Fu @antfu

Fazer o Desafio    English 简体中文 日本語 한국어

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Às vezes, você pode querer procurar um tipo em uma união pelos seus atributos. + +Neste desafio, gostaríamos de obter o tipo correspondente pesquisando o campo `type` comum na união `Cat | Dog`. Em outras palavras, esperaremos obter `Dog` para `LookUp` e `Cat` para `LookUp` no exemplo a seguir. + +```ts +interface Cat { + type: 'cat' + breeds: 'Abyssinian' | 'Shorthair' | 'Curl' | 'Bengal' +} + +interface Dog { + type: 'dog' + breeds: 'Hound' | 'Brittany' | 'Bulldog' | 'Boxer' + color: 'brown' | 'white' | 'black' +} + +type MyDogType = LookUp // expected to be `Dog` +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções \ No newline at end of file diff --git a/questions/00062-medium-type-lookup/README.zh-CN.md b/questions/00062-medium-type-lookup/README.zh-CN.md index 85938c87a..348b634aa 100644 --- a/questions/00062-medium-type-lookup/README.zh-CN.md +++ b/questions/00062-medium-type-lookup/README.zh-CN.md @@ -1,4 +1,4 @@ -

查找类型 中等 #union #map

by Anthony Fu @antfu

接受挑战    English 日本語 한국어

+

查找类型 中等 #union #map

by Anthony Fu @antfu

接受挑战    English 日本語 한국어 Português (BR)

有时,您可能希望根据某个属性在联合类型中查找类型。 diff --git a/questions/00062-medium-type-lookup/info.pt-BR.yml b/questions/00062-medium-type-lookup/info.pt-BR.yml new file mode 100644 index 000000000..a3c8554d6 --- /dev/null +++ b/questions/00062-medium-type-lookup/info.pt-BR.yml @@ -0,0 +1,6 @@ +difficulty: médio +title: Tipo Lookup +tags: 'union, map' +author: + github: antfu + name: Anthony Fu diff --git a/questions/00089-hard-required-keys/README.ja.md b/questions/00089-hard-required-keys/README.ja.md index 5b350c339..3c890a0bc 100644 --- a/questions/00089-hard-required-keys/README.ja.md +++ b/questions/00089-hard-required-keys/README.ja.md @@ -1,4 +1,4 @@ -

Required Keys 上級 #utils

by yituan @yi-tuan

挑戦する    English 简体中文

+

Required Keys 上級 #utils

by yituan @yi-tuan

挑戦する    English 简体中文 Português (BR)

必須なキーの Union を抽出する高度なユーティリティ型 `RequiredKeys` を実装してください。 diff --git a/questions/00089-hard-required-keys/README.md b/questions/00089-hard-required-keys/README.md index 9fb24ed7d..6097c64ea 100644 --- a/questions/00089-hard-required-keys/README.md +++ b/questions/00089-hard-required-keys/README.md @@ -1,4 +1,4 @@ -

Required Keys hard #utils

by yituan @yi-tuan

Take the Challenge    简体中文 日本語

+

Required Keys hard #utils

by yituan @yi-tuan

Take the Challenge    简体中文 日本語 Português (BR)

Implement the advanced util type `RequiredKeys`, which picks all the required keys into a union. diff --git a/questions/00089-hard-required-keys/README.pt-BR.md b/questions/00089-hard-required-keys/README.pt-BR.md new file mode 100644 index 000000000..a592ee984 --- /dev/null +++ b/questions/00089-hard-required-keys/README.pt-BR.md @@ -0,0 +1,14 @@ +

Chaves Obrigatórias difícil #utils

by yituan @yi-tuan

Fazer o Desafio    English 简体中文 日本語

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente o tipo de utilitário avançado `RequiredKeys`, que seleciona todas as chaves necessárias em uma união. + +Por exemplo + +```ts +type Result = RequiredKeys<{ foo: number; bar?: string }>; +// expected to be “foo” +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções

Desafios Relacionados

5・Get Readonly Keys \ No newline at end of file diff --git a/questions/00089-hard-required-keys/README.zh-CN.md b/questions/00089-hard-required-keys/README.zh-CN.md index 9ad7e3e31..24142e3a0 100644 --- a/questions/00089-hard-required-keys/README.zh-CN.md +++ b/questions/00089-hard-required-keys/README.zh-CN.md @@ -1,4 +1,4 @@ -

必需的键 困难 #utils

by yituan @yi-tuan

接受挑战    English 日本語

+

必需的键 困难 #utils

by yituan @yi-tuan

接受挑战    English 日本語 Português (BR)

实现高级工具类型 `RequiredKeys`,该类型返回 T 中所有必需属性的键组成的一个联合类型。 diff --git a/questions/00089-hard-required-keys/info.pt-BR.yml b/questions/00089-hard-required-keys/info.pt-BR.yml new file mode 100644 index 000000000..abec596d5 --- /dev/null +++ b/questions/00089-hard-required-keys/info.pt-BR.yml @@ -0,0 +1,7 @@ +difficulty: difícil +title: Chaves Obrigatórias +tags: utils +related: 5 +author: + github: yi-tuan + name: yituan diff --git a/questions/00090-hard-optional-keys/README.ja.md b/questions/00090-hard-optional-keys/README.ja.md index b295f15bd..f1ec2254a 100644 --- a/questions/00090-hard-optional-keys/README.ja.md +++ b/questions/00090-hard-optional-keys/README.ja.md @@ -1,4 +1,4 @@ -

Optional Keys 上級 #utils

by yituan @yi-tuan

挑戦する    English 简体中文

+

Optional Keys 上級 #utils

by yituan @yi-tuan

挑戦する    English 简体中文 Português (BR)

オプショナルなキーの Union を抽出する高度なユーティリティ型 `OptionalKeys` を実装してください。 diff --git a/questions/00090-hard-optional-keys/README.md b/questions/00090-hard-optional-keys/README.md index c887d5a86..5d9af5230 100644 --- a/questions/00090-hard-optional-keys/README.md +++ b/questions/00090-hard-optional-keys/README.md @@ -1,4 +1,4 @@ -

Optional Keys hard #utils

by yituan @yi-tuan

Take the Challenge    简体中文 日本語

+

Optional Keys hard #utils

by yituan @yi-tuan

Take the Challenge    简体中文 日本語 Português (BR)

Implement the advanced util type `OptionalKeys`, which picks all the optional keys into a union. diff --git a/questions/00090-hard-optional-keys/README.pt-BR.md b/questions/00090-hard-optional-keys/README.pt-BR.md new file mode 100644 index 000000000..58b8b9f6c --- /dev/null +++ b/questions/00090-hard-optional-keys/README.pt-BR.md @@ -0,0 +1,7 @@ +

Chaves Opcionais difícil #utils

by yituan @yi-tuan

Fazer o Desafio    English 简体中文 日本語

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente o tipo de utilitário avançado `OptionalKeys`, que seleciona todas as chaves opcionais em uma união. + +
Voltar Compartilhar suas Soluções Conferir Soluções

Desafios Relacionados

89・Chaves Obrigatórias 5・Get Readonly Keys \ No newline at end of file diff --git a/questions/00090-hard-optional-keys/README.zh-CN.md b/questions/00090-hard-optional-keys/README.zh-CN.md index b387d6d1c..0a8eff797 100644 --- a/questions/00090-hard-optional-keys/README.zh-CN.md +++ b/questions/00090-hard-optional-keys/README.zh-CN.md @@ -1,4 +1,4 @@ -

可选类型的键 困难 #utils

by yituan @yi-tuan

接受挑战    English 日本語

+

可选类型的键 困难 #utils

by yituan @yi-tuan

接受挑战    English 日本語 Português (BR)

实现高级工具类型`OptionalKeys`,该类型将 T 中所有可选属性的键合并为一个联合类型。 diff --git a/questions/00090-hard-optional-keys/info.pt-BR.yml b/questions/00090-hard-optional-keys/info.pt-BR.yml new file mode 100644 index 000000000..1ff7d4202 --- /dev/null +++ b/questions/00090-hard-optional-keys/info.pt-BR.yml @@ -0,0 +1,7 @@ +difficulty: difícil +title: Chaves Opcionais +tags: utils +related: '89, 5' +author: + github: yi-tuan + name: yituan diff --git a/questions/00106-medium-trimleft/README.ja.md b/questions/00106-medium-trimleft/README.ja.md index 794496d2d..aeea0c3e6 100644 --- a/questions/00106-medium-trimleft/README.ja.md +++ b/questions/00106-medium-trimleft/README.ja.md @@ -1,4 +1,4 @@ -

Trim Left 中級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어

+

Trim Left 中級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어 Português (BR)

文字列を受け取り、先頭の空白を削除した新しい文字列を返す `TrimLeft` を実装します。 diff --git a/questions/00106-medium-trimleft/README.ko.md b/questions/00106-medium-trimleft/README.ko.md index 5ee6a4039..7022a5005 100644 --- a/questions/00106-medium-trimleft/README.ko.md +++ b/questions/00106-medium-trimleft/README.ko.md @@ -1,4 +1,4 @@ -

Trim Left 보통 #template-literal

by Anthony Fu @antfu

도전하기    English 简体中文 日本語

+

Trim Left 보통 #template-literal

by Anthony Fu @antfu

도전하기    English 简体中文 日本語 Português (BR)

정확한 문자열 타입이고 시작 부분의 공백이 제거된 새 문자열을 반환하는 `TrimLeft`를 구현하십시오. diff --git a/questions/00106-medium-trimleft/README.md b/questions/00106-medium-trimleft/README.md index 8e80b4e9a..12da64abb 100644 --- a/questions/00106-medium-trimleft/README.md +++ b/questions/00106-medium-trimleft/README.md @@ -1,4 +1,4 @@ -

Trim Left medium #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어

+

Trim Left medium #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어 Português (BR)

Implement `TrimLeft` which takes an exact string type and returns a new string with the whitespace beginning removed. diff --git a/questions/00106-medium-trimleft/README.pt-BR.md b/questions/00106-medium-trimleft/README.pt-BR.md new file mode 100644 index 000000000..c2be22c59 --- /dev/null +++ b/questions/00106-medium-trimleft/README.pt-BR.md @@ -0,0 +1,13 @@ +

Remover margem esquerda médio #template-literal

by Anthony Fu @antfu

Fazer o Desafio    English 简体中文 日本語 한국어

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente `TrimLeft` que pega um tipo de string exato e retorna uma nova string com o início do espaço em branco removido. + +Por exemplo + +```ts +type trimed = TrimLeft<' Hello World '> // expected to be 'Hello World ' +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções

Desafios Relacionados

108・Remover espaços em branco nas extremidades 4803・Trim Right \ No newline at end of file diff --git a/questions/00106-medium-trimleft/README.zh-CN.md b/questions/00106-medium-trimleft/README.zh-CN.md index c59eaffac..719d752d5 100644 --- a/questions/00106-medium-trimleft/README.zh-CN.md +++ b/questions/00106-medium-trimleft/README.zh-CN.md @@ -1,4 +1,4 @@ -

去除左侧空白 中等 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語 한국어

+

去除左侧空白 中等 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語 한국어 Português (BR)

实现 `TrimLeft` ,它接收确定的字符串类型并返回一个新的字符串,其中新返回的字符串删除了原字符串开头的空白字符串。 diff --git a/questions/00106-medium-trimleft/info.pt-BR.yml b/questions/00106-medium-trimleft/info.pt-BR.yml new file mode 100644 index 000000000..18afb0867 --- /dev/null +++ b/questions/00106-medium-trimleft/info.pt-BR.yml @@ -0,0 +1,8 @@ +difficulty: médio +title: Remover margem esquerda +tags: template-literal +author: + github: antfu + name: Anthony Fu + +related: 108, 4803 diff --git a/questions/00108-medium-trim/README.ja.md b/questions/00108-medium-trim/README.ja.md index f26df5c43..6e8c34e10 100644 --- a/questions/00108-medium-trim/README.ja.md +++ b/questions/00108-medium-trim/README.ja.md @@ -1,4 +1,4 @@ -

Trim 中級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어

+

Trim 中級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어 Português (BR)

文字列を受け取り、両端の空白を削除した新しい文字列を返す `Trim` を実装します。 diff --git a/questions/00108-medium-trim/README.ko.md b/questions/00108-medium-trim/README.ko.md index 4315d8c2a..5a3890ddd 100644 --- a/questions/00108-medium-trim/README.ko.md +++ b/questions/00108-medium-trim/README.ko.md @@ -1,4 +1,4 @@ -

Trim 보통 #template-literal

by Anthony Fu @antfu

도전하기    English 简体中文 日本語

+

Trim 보통 #template-literal

by Anthony Fu @antfu

도전하기    English 简体中文 日本語 Português (BR)

정확한 문자열 타입이고 양쪽 끝의 공백이 제거된 새 문자열을 반환하는 `Trim`를 구현하십시오. diff --git a/questions/00108-medium-trim/README.md b/questions/00108-medium-trim/README.md index 08b39eb05..44f8c5db0 100644 --- a/questions/00108-medium-trim/README.md +++ b/questions/00108-medium-trim/README.md @@ -1,4 +1,4 @@ -

Trim medium #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어

+

Trim medium #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어 Português (BR)

Implement `Trim` which takes an exact string type and returns a new string with the whitespace from both ends removed. diff --git a/questions/00108-medium-trim/README.pt-BR.md b/questions/00108-medium-trim/README.pt-BR.md new file mode 100644 index 000000000..1389a6c14 --- /dev/null +++ b/questions/00108-medium-trim/README.pt-BR.md @@ -0,0 +1,13 @@ +

Remover espaços em branco nas extremidades médio #template-literal

by Anthony Fu @antfu

Fazer o Desafio    English 简体中文 日本語 한국어

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente `Trim` que pega um tipo de string exato e retorna uma nova string com o espaço em branco de ambas as extremidades removido. + +Por exemplo + +```ts +type trimmed = Trim<' Hello World '> // expected to be 'Hello World' +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções

Desafios Relacionados

106・Remover margem esquerda 4803・Trim Right \ No newline at end of file diff --git a/questions/00108-medium-trim/README.zh-CN.md b/questions/00108-medium-trim/README.zh-CN.md index e58e2b7d5..4aec565c2 100644 --- a/questions/00108-medium-trim/README.zh-CN.md +++ b/questions/00108-medium-trim/README.zh-CN.md @@ -1,4 +1,4 @@ -

去除两端空白字符 中等 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語 한국어

+

去除两端空白字符 中等 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語 한국어 Português (BR)

实现`Trim`,它接受一个明确的字符串类型,并返回一个新字符串,其中两端的空白符都已被删除。 diff --git a/questions/00108-medium-trim/info.pt-BR.yml b/questions/00108-medium-trim/info.pt-BR.yml new file mode 100644 index 000000000..26c67a1ee --- /dev/null +++ b/questions/00108-medium-trim/info.pt-BR.yml @@ -0,0 +1,8 @@ +difficulty: mério +title: Remover espaços em branco nas extremidades +tags: template-literal +author: + github: antfu + name: Anthony Fu + +related: 106, 4803 diff --git a/questions/00110-medium-capitalize/README.ja.md b/questions/00110-medium-capitalize/README.ja.md index df42051b5..2e920bb89 100644 --- a/questions/00110-medium-capitalize/README.ja.md +++ b/questions/00110-medium-capitalize/README.ja.md @@ -1,4 +1,4 @@ -

Capitalize 中級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어

+

Capitalize 中級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어 Português (BR)

文字列の最初の文字を大文字に変換し、それ以外はそのままにする `Capitalize` を実装します。 diff --git a/questions/00110-medium-capitalize/README.ko.md b/questions/00110-medium-capitalize/README.ko.md index 50ac7e7b8..e23e2cc52 100644 --- a/questions/00110-medium-capitalize/README.ko.md +++ b/questions/00110-medium-capitalize/README.ko.md @@ -1,4 +1,4 @@ -

Capitalize 보통 #template-literal

by Anthony Fu @antfu

도전하기    English 简体中文 日本語

+

Capitalize 보통 #template-literal

by Anthony Fu @antfu

도전하기    English 简体中文 日本語 Português (BR)

문자열의 첫 글자만 대문자로 바꾸고 나머지는 그대로 놔두는 `Capitalize`를 구현하세요. diff --git a/questions/00110-medium-capitalize/README.md b/questions/00110-medium-capitalize/README.md index 3f627ef47..82acb93aa 100644 --- a/questions/00110-medium-capitalize/README.md +++ b/questions/00110-medium-capitalize/README.md @@ -1,4 +1,4 @@ -

Capitalize medium #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어

+

Capitalize medium #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어 Português (BR)

Implement `Capitalize` which converts the first letter of a string to uppercase and leave the rest as-is. diff --git a/questions/00110-medium-capitalize/README.pt-BR.md b/questions/00110-medium-capitalize/README.pt-BR.md new file mode 100644 index 000000000..37b49e2dd --- /dev/null +++ b/questions/00110-medium-capitalize/README.pt-BR.md @@ -0,0 +1,13 @@ +

Capitalizar médio #template-literal

by Anthony Fu @antfu

Fazer o Desafio    English 简体中文 日本語 한국어

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente `Capitalize` que converte a primeira letra de uma string em maiúscula e deixa o resto como está. + +Por exemplo + +```ts +type capitalized = Capitalize<'hello world'> // expected to be 'Hello world' +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções \ No newline at end of file diff --git a/questions/00110-medium-capitalize/README.zh-CN.md b/questions/00110-medium-capitalize/README.zh-CN.md index f90ba9863..6fd5a0a8c 100644 --- a/questions/00110-medium-capitalize/README.zh-CN.md +++ b/questions/00110-medium-capitalize/README.zh-CN.md @@ -1,4 +1,4 @@ -

Capitalize 中等 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語 한국어

+

Capitalize 中等 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語 한국어 Português (BR)

实现 `Capitalize` 它将字符串的第一个字母转换为大写,其余字母保持原样。 diff --git a/questions/00110-medium-capitalize/info.pt-BR.yml b/questions/00110-medium-capitalize/info.pt-BR.yml new file mode 100644 index 000000000..78a98c4cf --- /dev/null +++ b/questions/00110-medium-capitalize/info.pt-BR.yml @@ -0,0 +1,6 @@ +difficulty: médio +title: Capitalizar +tags: template-literal +author: + github: antfu + name: Anthony Fu diff --git a/questions/00112-hard-capitalizewords/README.ja.md b/questions/00112-hard-capitalizewords/README.ja.md index be7e49d2e..1fd5caaf9 100644 --- a/questions/00112-hard-capitalizewords/README.ja.md +++ b/questions/00112-hard-capitalizewords/README.ja.md @@ -1,4 +1,4 @@ -

Capitalize Words 上級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文

+

Capitalize Words 上級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文 Português (BR)

**文字列の各単語**の最初の文字を大文字に変換し、残りをそのままにする `CapitalizeWords ` を実装します。 diff --git a/questions/00112-hard-capitalizewords/README.md b/questions/00112-hard-capitalizewords/README.md index 3cbd6e420..77111683b 100644 --- a/questions/00112-hard-capitalizewords/README.md +++ b/questions/00112-hard-capitalizewords/README.md @@ -1,4 +1,4 @@ -

Capitalize Words hard #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語

+

Capitalize Words hard #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 Português (BR)

Implement `CapitalizeWords` which converts the first letter of **each word of a string** to uppercase and leaves the rest as-is. diff --git a/questions/00112-hard-capitalizewords/README.pt-BR.md b/questions/00112-hard-capitalizewords/README.pt-BR.md new file mode 100644 index 000000000..2384e1c73 --- /dev/null +++ b/questions/00112-hard-capitalizewords/README.pt-BR.md @@ -0,0 +1,13 @@ +

Capitalizar Palavras difícil #template-literal

by Anthony Fu @antfu

Fazer o Desafio    English 简体中文 日本語

+ +> Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução. + +Implemente `CapitalizeWords` que converte a primeira letra de **cada palavra de uma string** em maiúscula e deixa o resto como está. + +Por exemplo + +```ts +type capitalized = CapitalizeWords<'hello world, my friends'> // expected to be 'Hello World, My Friends' +``` + +
Voltar Compartilhar suas Soluções Conferir Soluções \ No newline at end of file diff --git a/questions/00112-hard-capitalizewords/README.zh-CN.md b/questions/00112-hard-capitalizewords/README.zh-CN.md index f40a6e8d9..24896d790 100644 --- a/questions/00112-hard-capitalizewords/README.zh-CN.md +++ b/questions/00112-hard-capitalizewords/README.zh-CN.md @@ -1,4 +1,4 @@ -

Capitalize Words 困难 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語

+

Capitalize Words 困难 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語 Português (BR)

实现`CapitalizeWords`,它将**字符串的每个单词**的第一个字母转换为大写,其余部分保持原样。 diff --git a/questions/00112-hard-capitalizewords/info.pt-BR.yml b/questions/00112-hard-capitalizewords/info.pt-BR.yml new file mode 100644 index 000000000..a608e2499 --- /dev/null +++ b/questions/00112-hard-capitalizewords/info.pt-BR.yml @@ -0,0 +1,6 @@ +difficulty: difícil +title: Capitalizar Palavras +tags: template-literal +author: + github: antfu + name: Anthony Fu