Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spicytigermeat authored Mar 17, 2024
1 parent b462f2b commit 8563c9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ez-localizr accounts for Unicode issues using `ftfy`, and loads string definitio
## Simple Usage Guide:

```python
import ezlocalizr
L = ezlocalizr(language='en_US', string_path: 'strings', default_lang='en_US')

text = L('test')
Expand All @@ -24,6 +25,7 @@ Output: `Hello World!`
ez-localizr will only be able to display strings in languages that are in your string folder. If you have multiple, and would like to change it, call the `load_lang()` function. An example is listed below!

```python
import ezlocalizr
L = ezlocalizr(language='en_US', string_path='strings', default_lang='en_US')

L.load_lang('fr_FR')
Expand Down

0 comments on commit 8563c9b

Please sign in to comment.