mirror of
https://github.com/lektor/lektor-website.git
synced 2025-02-22 07:00:38 +01:00
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
|
||||
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
Block a user