Skip to content

Commit 5b82bf8

Browse files
committedMar 23, 2024·
docs: regions
1 parent d966778 commit 5b82bf8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -147,29 +147,29 @@ const translator = createUktiTranslator<Definition>({
147147
en: {
148148
friend: 'Friend',
149149
regions: {
150-
US: {
150+
US: { // United States
151151
friend: 'Dude'
152152
},
153-
CA: {
153+
CA: { // Canada
154154
friend: 'Buddy'
155155
}
156156
}
157157
},
158158
es: {
159159
friend: 'Amigo',
160160
regions: {
161-
CO: {
161+
CO: { // Colombia
162162
friend: 'Parce'
163163
},
164-
VN: {
164+
VN: { // Venezuela
165165
friend: 'Pana'
166166
}
167167
}
168168
}
169169
}
170170
})
171171
172-
const t = translator('es', 'CO')
172+
const t = translator('es', 'CO') // Spanish from Colombia
173173
174174
console.log(t.friend()) // 'Parce'
175175
```

0 commit comments

Comments
 (0)
Please sign in to comment.