GitbookIO / gitbook

The open source frontend for GitBook doc sites
https://www.gitbook.com
GNU General Public License v3.0
27.25k stars 3.88k forks source link

Gitbook error when angular filters are used #1984

Closed cmacdonnacha closed 8 months ago

cmacdonnacha commented 6 years ago

What is the current behavior?

I receive an error when building gitbook docs:

Error: filter not found: translate

This is the sample code I'm using:

<input type="text" placeholder="{{ 'Username' | translate }}" />

CLI version: 2.3.2 GitBook version: 3.2.3

What is the expected behavior?

Should not be getting any error, gitbook should build successfully.

timfrans commented 6 years ago

Same here.

EDIT: try to replace your pipes with | or use {% raw %} {% endraw %}

wilhelmguo commented 5 years ago

@timfrans the same issues