# 格式无效：因翻译导致未捕获的语法错误

**URL:** https://meta.discourse.org/t/invalid-format-uncaught-syntaxerror-due-to-translations/118462
**Category:** Translations
**Created:** [2019年五月23日 00:01 UTC](https://meta.discourse.org/t/invalid-format-uncaught-syntaxerror-due-to-translations/118462 "2019-05-23T00:01:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![calebs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/calebs/32/148838_2.png) [@calebs](https://meta.discourse.org/u/calebs)
#### Post date: [2019年五月23日 00:01 UTC](https://meta.discourse.org/t/invalid-format-uncaught-syntaxerror-due-to-translations/118462/1 "2019-05-23T00:01:45Z")

</div>

Hi again! Our forum is finally working smoothly, thanks to the support I’ve received here.

However, i’ve just noticed the following error at the bottom of the pages of the forum:

> Invalid Format: Uncaught SyntaxError: Expected “=”, “}” or [a-zA-Z$\_] but “%u043F” found. at undefined:1376:10

I guess it’s an issue with my translations, since I’m manually doing it for the entire system.

Could anyone tell me where to fix that? I’m using a 50% finished bulgarian translation and doing the rest on my own, if that’s even the case.

Thanks!

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2019年五月23日 12:01 UTC](https://meta.discourse.org/t/invalid-format-uncaught-syntaxerror-due-to-translations/118462/2 "2019-05-23T12:01:08Z")

</div>

[How to check locale files for errors](https://meta.discourse.org/t/how-to-check-locale-files-for-errors/96527) has all the answers.

```plaintext
$ rake i18n:check[bg]

================================================================================
config/locales/client.bg.yml
================================================================================
js.about.contact_info -- Missing interpolation keys: ["contact_info"]
js.about.contact_info -- Unsupported interpolation keys: ["contact_email"]
admin_js.admin.backups.operations.failed -- Missing interpolation keys: ["operation"]
js.topic.read_more_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u043F" found.

================================================================================
config/locales/server.bg.yml
================================================================================
education.new-topic -- Missing interpolation keys: ["base_path"]
dashboard.rails_env_warning -- Missing interpolation keys: ["env"]
user_notifications.posted_by -- Missing interpolation keys: ["username"]

```

You should take a closer look at the translation for `js.topic.read_more_MF` and fix it on [Transifex](https://www.transifex.com/discourse/discourse-org), so that everyone profits from your work.

---

<div class="post-metadata">

### Author: ![Dmitry\_Krasnoperov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_krasnoperov/32/65079_2.png) [@Dmitry\_Krasnoperov](https://meta.discourse.org/u/Dmitry_Krasnoperov)
#### Post date: [2019年十月23日 17:15 UTC](https://meta.discourse.org/t/invalid-format-uncaught-syntaxerror-due-to-translations/118462/3 "2019-10-23T17:15:41Z")

</div>

又一个错误。已启用俄语翻译。

`无效格式：未捕获的语法错误：预期出现 "="、"}" 或 [a-zA-Z$_]，但发现了 "%u0438"。位置：undefined:1376:10`
