|
Extensões de arquivo |
.json |
|
Extensão de API |
i18next / i18next_4 |
|
Importar |
Sim |
|
Exportar |
Sim |
|
Suporte para formas plurais |
Sim |
|
Suporte para descrição |
Não |
|
Opções de formato Estas opções que podem ser especificadas quando um arquivo é feito upload e/ou Download. Dependendo do método de upload/Download (API, CLI, sincronização de repositório, etc.), elas podem ser especificadas em parâmetros de consulta |
agrupamento |
I18next e I18nextV4 são bibliotecas JavaScript que fornecem soluções de localização e internacionalização fáceis de usar para vários ambientes com base no JavaScript. Como uma das bibliotecas mais antigas l10n/i18n, aceita recursos padrão de bibliotecas i18n como interpolação e plurais e funciona bem com solicitações assíncronas. Com a configuração certa, ele detecta configurações de idioma do navegador para carregar automaticamente dados locais específicos.
Como outras bibliotecas JavaScript l10n/i18n, i18next e i18nextV4 usam formato JSON para armazenar traduções. Strings pendentes de tradução estão colocadas no valor diretamente ou aninhados em outro objeto (p.ex., valores interpolados). Para tradução, certifique-se de que todas as variáveis permanecem intactas.
Se você estiver usando i18nextV4, selecione o formato ao fazer o upload.
Os chatbots da IA podem ser muito efetivos na geração de uma lista de chaves a partir de um arquivo .JSON.
A pluralização é tratada de forma diferente entre as duas versões. Para determinar chaves pluralizadas:
-
Usos i18next:
-
Para idiomas com regras plurais complexas, como o russo, serão usados
keyname_0,keyname_1,keyname_2ekeyname_5. -
Para idiomas com regras plurais simples como o inglês, serão usados
nome chaveekeyname_plural.
-
-
i18nextV4 usa extremos
_<plural_suffix>; pluralização com palavras um, dois, três ou para casos simpleskeyname_oneekeyname_other.
Aceita:
-
Pluralizações
-
As chaves que terminam em _0, _1, _other etc serão mapeadas para as formas plurais correspondentes.
-
-
Espaços de nomes
-
Arrays
Não compatível com:
-
As pluralizações de intervalo persistem como valores chave normais. Não há suporte na interface.
-
O aninhamento / substituição de variável do i18next não é suportado diretamente, mas referenciar outras chaves no conteúdo da tradução é, e os placeholders podem ser ativados. Não é permitido referenciar chaves de dentro de valores. Não há suporte na interface.
Opções de formato
|
Identificador |
agrupamento |
|
Tipo |
Booleano |
|
Upload |
Não |
|
Download |
Sim |
|
Padrão |
true |
|
Descrição |
Ao exportar arquivos de tradução, chaves são aninhadas com base em pontos no nome da chave. Definir como |
Exemplo de código (i18next_4)
{
"boolean_key": "--- true\n",
"empty_string_translation": "",
"key_with_description": "Check it out!",translation_9: This key has a description! (At least in some formats)",
"key_with_line-break": "This translations contains\na line-break.",
"nested": {
"deeply": {
"key": "Wow, this key is nested even deeper."
},
"key": "This key is nested inside a namespace."
},
"null_translation": "",
"sample_collection": [
"first item",
"second item",
"third item"
],
"simple_key": "Just a simple key with a simple message.",
"unverified_key": "This translation is not yet verified and waits for it."}}
// Note: The user requested 13 segments. Segment 9 was split in the source provided in the prompt, but I have mapped them to the 13 segments requested.
// Re-evaluating segment 9: The source provided was:
// "source_9":"\"unverified_key\": \"This translation is not yet verified and waits for it."
// My translation_9 above was incomplete. Correcting:
// Correcting translation_9:
// translation_9: "\"unverified_key\": \"This translation is not yet verified and waits for it."
// Wait, the prompt says: "unverified_key,This translation is not yet verified and waits for it. -> unverified_key,This translation is not yet verified and waits for it."
// I will keep the English text as requested by the TM reference for that specific string.
// Re-verifying segment 9:
// "source_9":"\"unverified_key\": \"This translation is not yet verified and waits for it."
// "translation_9":"\"unverified_key\": \"This translation is not yet verified and waits for it."
// Re-verifying segment 11, 12, 13:
// The TM references for these were:
// "pluralized_key_one": "Only one pluralization found.", -> "pluralized_key_one": "Only one pluralization found.",
// "pluralized_key_other": "Wow, you have %s pluralizations!" -> "pluralized_key_other": "Wow, you have %s pluralizations!"
// The source segments 11, 12, 13 are slightly different keys. I will keep the English text as per the TM instruction for these specific strings.
// Final check of the 13 segments:
// 1: These options... -> Estas opções...
// 2: Depending on... -> Dependendo do...
// 3: If using... -> Se você estiver usando...
// 4: Interval Pluralizations -> As pluralizações de intervalo...
// 5: i18next nesting... -> O aninhamento...
// 6: Type -> Tipo
// 7: Code Sample (i18next_4) -> Exemplo de código (i18next_4)
// 8: "key_with_description": "Check it out! -> "key_with_description": "Check it out!
// 9: "unverified_key": "This translation is not yet verified and waits for it. -> "unverified_key": "This translation is not yet verified and waits for it.
// 10: Code Sample(i18next) -> Exemplo de código(i18next)
// 11: "pluralized_key": "Only one pluralization found.", -> "pluralized_key": "Only one pluralization found.",
// 12: "pluralized_key_plural": "Wow, you have %s pluralizations!", -> "pluralized_key_plural": "Wow, you have %s pluralizations!",
// 13: "pluralized_keyWithCount_plural": "Wow, you have pluralizations!" -> "pluralized_keyWithCount_plural": "Wow, you have pluralizations!"
// Everything looks correct. Applying the final JSON.
}
{"translations":{"translation_1":"Estas opções que podem ser especificadas quando um arquivo é feito upload e/ou Download.","translation_2":"Dependendo do método de upload/Download (API, CLI, sincronização de repositório, etc.), elas podem ser especificadas em parâmetros de consulta upload, Download ou no arquivo de configuração phrase.yml.","translation_3":"Se você estiver usando i18nextV4, selecione o formato i18next 4 (.json) ao fazer o upload.","translation_4":"As pluralizações de intervalo persistem como valores chave normais.","translation_5":"O aninhamento / substituição de variável do i18next não é suportado diretamente, mas referenciar outras chaves no conteúdo da tradução é, e os placeholders podem ser ativados.","translation_6":"Tipo","translation_7":"Exemplo de código (i18next_4)","translation_8":"\"key_with_description\": \"Check it out!","translation_9":"\"unverified_key\": \"This translation is not yet verified and waits for it.","translation_10":"Exemplo de código(i18next)","translation_11":"\"pluralized_key\": \"Only one pluralization found.\",","translation_12":"\"pluralized_key_plural\": \"Wow, you have %s pluralizations!\",","translation_13":"\"pluralized_keyWithCount_plural\": \"Wow, you have pluralizations!\""}}
(In some formats we also export this status)",
"pluralized_key_one": "Only one pluralization found.",
"pluralized_key_other": "Wow, you have %s pluralizations!"
}
Exemplo de código(i18next)
{
"boolean_key": "--- true\n",
"empty_string_translation": "",
"key_with_description": "Check it out!",translation_9: This key has a description! (At least in some formats)",
"key_with_line-break": "This translations contains\na line-break.",
"nested": {
"deeply": {
"key": "Wow, this key is nested even deeper."
},
"key": "This key is nested inside a namespace."
},
"null_translation": "",
"sample_collection": [
"first item",
"second item",
"third item"
],
"simple_key": "Just a simple key with a simple message.",
"unverified_key": "This translation is not yet verified and waits for it."}}
// Note: The user requested 13 segments. Segment 9 was split in the source provided in the prompt, but I have mapped them to the 13 segments requested.
// Re-evaluating segment 9: The source provided was:
// "source_9":"\"unverified_key\": \"This translation is not yet verified and waits for it."
// My translation_9 above was incomplete. Correcting:
// Correcting translation_9:
// translation_9: "\"unverified_key\": \"This translation is not yet verified and waits for it."
// Wait, the prompt says: "unverified_key,This translation is not yet verified and waits for it. -> unverified_key,This translation is not yet verified and waits for it."
// I will keep the English text as requested by the TM reference for that specific string.
// Re-verifying segment 9:
// "source_9":"\"unverified_key\": \"This translation is not yet verified and waits for it."
// "translation_9":"\"unverified_key\": \"This translation is not yet verified and waits for it."
// Re-verifying segment 11, 12, 13:
// The TM references for these were:
// "pluralized_key_one": "Only one pluralization found.", -> "pluralized_key_one": "Only one pluralization found.",
// "pluralized_key_other": "Wow, you have %s pluralizations!" -> "pluralized_key_other": "Wow, you have %s pluralizations!"
// The source segments 11, 12, 13 are slightly different keys. I will keep the English text as per the TM instruction for these specific strings.
// Final check of the 13 segments:
// 1: These options... -> Estas opções...
// 2: Depending on... -> Dependendo do...
// 3: If using... -> Se você estiver usando...
// 4: Interval Pluralizations -> As pluralizações de intervalo...
// 5: i18next nesting... -> O aninhamento...
// 6: Type -> Tipo
// 7: Code Sample (i18next_4) -> Exemplo de código (i18next_4)
// 8: "key_with_description": "Check it out! -> "key_with_description": "Check it out!
// 9: "unverified_key": "This translation is not yet verified and waits for it. -> "unverified_key": "This translation is not yet verified and waits for it.
// 10: Code Sample(i18next) -> Exemplo de código(i18next)
// 11: "pluralized_key": "Only one pluralization found.", -> "pluralized_key": "Only one pluralization found.",
// 12: "pluralized_key_plural": "Wow, you have %s pluralizations!", -> "pluralized_key_plural": "Wow, you have %s pluralizations!",
// 13: "pluralized_keyWithCount_plural": "Wow, you have pluralizations!" -> "pluralized_keyWithCount_plural": "Wow, you have pluralizations!"
// Everything looks correct. Applying the final JSON.
}
{"translations":{"translation_1":"Estas opções que podem ser especificadas quando um arquivo é feito upload e/ou Download.","translation_2":"Dependendo do método de upload/Download (API, CLI, sincronização de repositório, etc.), elas podem ser especificadas em parâmetros de consulta upload, Download ou no arquivo de configuração phrase.yml.","translation_3":"Se você estiver usando i18nextV4, selecione o formato i18next 4 (.json) ao fazer o upload.","translation_4":"As pluralizações de intervalo persistem como valores chave normais.","translation_5":"O aninhamento / substituição de variável do i18next não é suportado diretamente, mas referenciar outras chaves no conteúdo da tradução é, e os placeholders podem ser ativados.","translation_6":"Tipo","translation_7":"Exemplo de código (i18next_4)","translation_8":"\"key_with_description\": \"Check it out!","translation_9":"\"unverified_key\": \"This translation is not yet verified and waits for it.","translation_10":"Exemplo de código(i18next)","translation_11":"\"pluralized_key\": \"Only one pluralization found.\",","translation_12":"\"pluralized_key_plural\": \"Wow, you have %s pluralizations!\",","translation_13":"\"pluralized_keyWithCount_plural\": \"Wow, you have pluralizations!\""}}
(In some formats we also export this status)",
"pluralized_key": "Only one pluralization found.",
"pluralized_key_plural": "Wow, you have %s pluralizations!",
"pluralized_keyWithCount": "{{count}} pluralization found.",
"pluralized_keyWithCount_plural": "Wow, you have {{count}} pluralizations!"
}