-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: correctly initialize plural from default value in in-context fo…
…rm (#3436)
- Loading branch information
Showing
59 changed files
with
856 additions
and
2,577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"add-item-add-button" : "Přidat", | ||
"add-item-input-placeholder" : "Nová položka seznamu", | ||
"app-title" : "Co sbalit", | ||
"delete-item-button" : "Smazat", | ||
"menu-item-translation-methods" : "Metody překládání", | ||
"send-via-email" : "Odeslat e-mailem", | ||
"share-button" : "Sdílet", | ||
"this_is_a_key" : "Toto je klíč", | ||
"this_is_a_key_with_params" : "Toto je klíč s parametry {key} {key2}", | ||
"this_is_a_key_with_tags" : "Toto je klíč s tagy <b>bold</b> <b><i>{key}</i></b>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"add-item-add-button" : "Einfügen", | ||
"add-item-input-placeholder" : "Neuer Eintrag", | ||
"app-title" : "Was mitnehmen", | ||
"delete-item-button" : "Löschen", | ||
"menu-item-translation-methods" : "Übersetzungsmethoden", | ||
"send-via-email" : "Per Email abschicken", | ||
"share-button" : "Teilen", | ||
"this_is_a_key" : "Dies ist ein Schlüssel", | ||
"this_is_a_key_with_params" : "Dies ist ein Schlüssel mit den Parametern {key} {key2}", | ||
"this_is_a_key_with_tags" : "Dies ist ein Schlüssel mit den Tags <b>bold</b> <b><i>{key}</i></b>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"add-item-add-button" : "Add", | ||
"add-item-input-placeholder" : "New list item", | ||
"app-title" : "What To Pack", | ||
"delete-item-button" : "Delete", | ||
"menu-item-translation-methods" : "Translation methods", | ||
"send-via-email" : "Send via e-mail", | ||
"share-button" : "Share", | ||
"this_is_a_key" : "This is a key", | ||
"this_is_a_key_with_params" : "This is key with params {key} {key2}", | ||
"this_is_a_key_with_tags" : "This is a key with tags <b>bold</b> <b><i>{key}</i></b>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"add-item-add-button" : "Ajouter", | ||
"add-item-input-placeholder" : "Nouveau élément de la liste", | ||
"app-title" : "Quoi emballer", | ||
"delete-item-button" : "Supprimer", | ||
"menu-item-translation-methods" : "Méthodes de la traduction", | ||
"send-via-email" : "Envoyer par e-mail", | ||
"share-button" : "Partager", | ||
"this_is_a_key" : "C'est un clé", | ||
"this_is_a_key_with_params" : "C'est la clé avec paramètres {key} {key2}", | ||
"this_is_a_key_with_tags" : "C'est la clé avec des tags <b>bold</b> <b><i>{key}</i></b>" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,28 @@ | ||
import { useEffect } from 'react'; | ||
import { useTolgee } from './basicTolgee'; | ||
import { styled } from '@mui/material'; | ||
|
||
const StyledContainer = styled('div')` | ||
margin: 100px auto; | ||
max-width: 300px; | ||
`; | ||
import { Todos } from './Todos'; | ||
import { TranslationMethods } from './TranslationMethods'; | ||
|
||
export const App = () => { | ||
const tolgee = useTolgee(['update', 'language']); | ||
const currentRoute = window.location.pathname; | ||
const tolgee = useTolgee(['initialLoad']); | ||
|
||
useEffect(() => { | ||
tolgee.run(); | ||
}, []); | ||
|
||
if (!tolgee.isLoaded()) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<StyledContainer> | ||
<div title="test">{tolgee.t('app-title')}</div> | ||
<div> | ||
{tolgee.t('app-title')} | ||
{tolgee.t('add-item-input-placeholder')} | ||
</div> | ||
<button disabled>{tolgee.t('app-title')}</button> | ||
<div style={{ pointerEvents: 'none' }}> | ||
<div>{tolgee.t('app-title')}</div> | ||
</div> | ||
<div> | ||
<div>{tolgee.t('new-key')}</div> | ||
</div> | ||
</StyledContainer> | ||
<> | ||
{currentRoute === '/translation-methods' ? ( | ||
<TranslationMethods /> | ||
) : ( | ||
<Todos /> | ||
)} | ||
</> | ||
); | ||
}; |
Oops, something went wrong.