Skip to content

Commit 4dba92a

Browse files
committed
updating readme
1 parent 42c9d61 commit 4dba92a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,16 @@ const Page = () => {
7272
<div>
7373
<h2>Inline Tranlation</h2>
7474
<p>{_('Hello World')}</p>
75+
7576
<h2>Inline Tranlation with Variables</h2>
7677
<p>{_('%s User', role)}</p>
78+
7779
<h2>String Literal Translations</h2>
7880
<p>{t`Welcome ${name}`}</p>
81+
7982
<h2>Translate Component</h2>
8083
<Translate>You are <strong>22</strong> years old</Translate>
84+
8185
<h2>Translate Component with Variables</h2>
8286
<Translate values={[ 22 ]}>You are %s years old</Translate>
8387
</div>
@@ -118,19 +122,23 @@ const Page = () => {
118122
changeLanguage(language, languages[language]);
119123
};
120124
return (
121-
<div className="p-4">
125+
<div>
122126
<button onClick={() => change('english')}>
123127
Change to English
124128
</button>
125129
<button onClick={() => change('klingon')}>
126130
Change to Klingon
127131
</button>
132+
128133
<h2>Inline Tranlation</h2>
129134
<p>{_('Hello World')}</p>
135+
130136
<h2>Inline Tranlation with Variables</h2>
131137
<p>{_('%s User', role)}</p>
138+
132139
<h2>String Literal Translations</h2>
133140
<p>{t`Welcome ${name}`}</p>
141+
134142
<h2>Translate Component</h2>
135143
<Translate>You are <strong>22</strong> years old</Translate>
136144
</div>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "r22n",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"license": "MIT",
55
"description": "A zero-configuration language translation interface for react written in typescript.",
66
"author": "Chris <[email protected]>",

0 commit comments

Comments
 (0)