I cannot override theme's translation in user/languages directory

I have a fresh Grav CMS instance with default Antimatter theme on.
I want to override some translations provided within the theme.
(I mean overriding English translations - the default language)

user/themes/antimatter/languages.yaml

en:
  TRANSLATION_TEST: Antimatter!
  BLOG:
    ITEM:
      CONTINUE_READING: Continue reading...
      NEXT_POST: Next Post
      PREV_POST: Previous Post
  SIDEBAR:
    SIMPLE_SEARCH:
      HEADLINE: Search
    RELATED_POSTS:
      HEADLINE: Related Posts
    RANDOM_ARTICLE:
      HEADLINE: Random Article
      FEELING_LUCKY: I'm Feeling Lucky!
    SOME_TEXT_WIDGET:
      HEADLINE: Some Text Widget
    POPULAR_TAGS:
      HEADLINE: Popular Tags
    ARCHIVES:
      HEADLINE: Archives
    SYNDICATE:
      HEADLINE: Syndicate
  FORM_DATA:
    SUMMARY: "Here is the summary of what you wrote to us:"
  ERROR: Error

To achieve this I try to put my translations into user/languages folder.

Example:
user/languages/en.yaml

ERROR: Failure

I tried also:
user/languages/languages.yaml

en:
  ERROR: Failure

I examine the result by visiting a non-existent page, but I still see the word ‘Error’ like in the original Antimatter’s language file.

I thought I’m doing it correctly - what’s wrong with that?

Thank you for your help.

Cześć Przemek!
According to the documentation on https://learn.getgrav.org/content/multi-language#translation-overrides, you have to create a file per language in the user/languages, i.e. user/languages/en.yaml, and inside it you have to create THEME_THEMENAME space, so Grav will know which string exactly you wish to override. So for given data, it should look like this:

user/languages/en.yaml

THEME_ANTIMATTER:
    ERROR: Failure

Cheers!

Hi,

Thank you for your reply!

Does it work for you? I tried this scheme as well and still no result.
(Note that Antimatter theme’s language file does not contain the namespace key THEME_ANTIMATTER; however, testing with other themes I had the same not satisfying result)

I’d have to investigate it further, sorry.