# Liquid Warning with bracket square notation

**URL:** <https://talk.jekyllrb.com/t/liquid-warning-with-bracket-square-notation/1183>\
**Category:** Help\
**Created:** [November 19, 2017, 6:26am UTC](https://talk.jekyllrb.com/t/liquid-warning-with-bracket-square-notation/1183 "2017-11-19T06:26:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/pierre/32/76_2.png) [@Pierre](https://talk.jekyllrb.com/u/Pierre)\
**Post date:** [November 19, 2017, 6:26am UTC](https://talk.jekyllrb.com/t/liquid-warning-with-bracket-square-notation/1183/1 "2017-11-19T06:26:06Z")

</div>

I’m using the expression below to manage a site in both french and english

```
{% assign data-input = site.data.[page.lang] %}

```

It works perfectly but when I launch Jekyll’s server, I get the following message :

```
Liquid Warning: Liquid syntax error (line 16): Expected id but found open_square in "{{site.data.[page.lang] }}" in index.html

```

Do you have any idea on how to avoid such an error message ? Thanks a lot

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [November 19, 2017, 4:43pm UTC](https://talk.jekyllrb.com/t/liquid-warning-with-bracket-square-notation/1183/2 "2017-11-19T16:43:28Z")

</div>

I don’t think you need the period before the open bracket:

`site.data[page.lang]`

---

<div class="post-metadata">

**Author:** ![onweru](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/onweru/32/840_2.png) [@onweru](https://talk.jekyllrb.com/u/onweru)\
**Post date:** [September 15, 2018, 8:36pm UTC](https://talk.jekyllrb.com/t/liquid-warning-with-bracket-square-notation/1183/3 "2018-09-15T20:36:09Z")

</div>

This doesn’t really work. Yes, you don’t get any errors, but you don’t get any output either.
