Skip to content

Commit

Permalink
docs: regions
Browse files Browse the repository at this point in the history
  • Loading branch information
romelperez committed Mar 23, 2024
1 parent d966778 commit 5b82bf8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,29 +147,29 @@ const translator = createUktiTranslator<Definition>({
en: {
friend: 'Friend',
regions: {
US: {
US: { // United States
friend: 'Dude'
},
CA: {
CA: { // Canada
friend: 'Buddy'
}
}
},
es: {
friend: 'Amigo',
regions: {
CO: {
CO: { // Colombia
friend: 'Parce'
},
VN: {
VN: { // Venezuela
friend: 'Pana'
}
}
}
}
})
const t = translator('es', 'CO')
const t = translator('es', 'CO') // Spanish from Colombia
console.log(t.friend()) // 'Parce'
```
Expand Down

0 comments on commit 5b82bf8

Please sign in to comment.