Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Named formatting: use name if value is missing #77

Merged
merged 1 commit into from
Oct 29, 2016
Merged

Named formatting: use name if value is missing #77

merged 1 commit into from
Oct 29, 2016

Conversation

SebastianS90
Copy link
Contributor

Consider the locales

{
    foo: 'This {argument} is {missing}'
}

and use them as $t('foo', {argument: 'test'}).

Old behavior: 'This test is '
New behavior: 'This test is {missing}'

@kazupon kazupon merged commit a0cc343 into kazupon:dev Oct 29, 2016
@SebastianS90 SebastianS90 deleted the named-formatting-placeholder branch October 29, 2016 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants