Fix typo
It's `databags.lookup`. There is no `databags.get`.
This commit is contained in:
parent
abe0593395
commit
2681ff4ded
|
@ -19,5 +19,5 @@ to the main [databags :ref](../) documentation.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def translate(pad, alt, key):
|
def translate(pad, alt, key):
|
||||||
return pad.databags.get('i18n.%s.%s' % (alt, key), key)
|
return pad.databags.lookup('i18n.%s.%s' % (alt, key), key)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue