Last active
March 10, 2016 19:15
-
-
Save umurkontaci/a02e91097fc9d358b0b4 to your computer and use it in GitHub Desktop.
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
3a4,5 | |
> 'use strict'; | |
> | |
6c8 | |
< var content = i18n.translate( 'My hat has three corners.' ); | |
--- | |
> var content = i18n.translate('My hat has three corners.'); | |
9c11 | |
< content = i18n.translate( { original: 'My hat has three corners too.' } ); | |
--- | |
> content = i18n.translate({ original: 'My hat has three corners too.' }); | |
13c15 | |
< content = i18n.translate( { | |
--- | |
> content = i18n.translate({ | |
19c21 | |
< } ); | |
--- | |
> }); | |
22c24 | |
< content = i18n.translate( { | |
--- | |
> content = i18n.translate({ | |
25c27 | |
< } ); | |
--- | |
> }); | |
28c30 | |
< content = i18n.translate( 'post2', { context: 'verb2' } ); | |
--- | |
> content = i18n.translate('post2', { context: 'verb2' }); | |
31c33 | |
< content = i18n.translate( { | |
--- | |
> content = i18n.translate({ | |
34c36 | |
< } ); | |
--- | |
> }); | |
40,41c42,44 | |
< var city = getCity(), // returns string | |
< zip = getZip(); // returns string | |
--- | |
> var city = getCity(), | |
> // returns string | |
> zip = getZip(); // returns string | |
43c46 | |
< content = i18n.translate( { | |
--- | |
> content = i18n.translate({ | |
49c52 | |
< } ); | |
--- | |
> }); | |
52c55 | |
< content = i18n.translate( 'single test', 'plural test', { count: 1 } ); | |
--- | |
> content = i18n.translate('single test', 'plural test', { count: 1 }); | |
56c59 | |
< content = i18n.translate( 'single test2', 'plural test2', { count: varCount } ); | |
--- | |
> content = i18n.translate('single test2', 'plural test2', { count: varCount }); | |
59,62c62,66 | |
< content = <div>{ i18n.translate( | |
< "This is a multi-line translation with \"mixed quotes\" " + | |
< 'and mixed \'single quotes\'' | |
< ) }</div>; | |
--- | |
> content = React.createElement( | |
> 'div', | |
> null, | |
> i18n.translate("This is a multi-line translation with \"mixed quotes\" " + 'and mixed \'single quotes\'') | |
> ); | |
64,65c68 | |
< content = this.translate( 'The string key text', | |
< { 'context': 'context with a literal string key' } ); | |
--- | |
> content = this.translate('The string key text', { 'context': 'context with a literal string key' }); | |
69c72 | |
< /*eslint-enable */ | |
--- | |
> /*eslint-enable */ | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment