Answers.Body: <p>You are looking for <a href="https://docs.craftcms.com/v3/static-translations.html" rel="nofollow noreferrer">Static Translations</a>.</p>
  
  <p>You can add a translation file for English to English (or whatever language you are using) to override default translations. In your case, you'll want to override the <code>app</code> translation category:</p>
  
  <p>In your project folder:</p>
  
  <pre><code>website.com/
  └── translations/
      └── en/
          └── app.php
  </code></pre>
  
  <p>And in <code>app.php</code>:</p>
  
  <pre><code>&lt;?php
  
  return [
      'Invalid username or password.' =&gt; 'Something new'
  ];
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-07T10:49:19.663Z
Answers.Text: Thanks! I managed to fix it by doing this. My issue was I was calling the file `site.php` not `app.php`. Doh.
Answers.UserDisplayName: Jason Mayo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-04T16:00:38.720Z
Answers.LastActivityDate: 2019-10-04T16:00:38.720Z
Answers.UserDisplayName: Ben Parizek
Body: <p>Is it possible to make Craft 3 load a custom translation/language file? Even if not using multisite or locales?</p>
  
  <p>My use case for this is just to change the way certain things are said. E.g. <code>'Invalid username or password.' =&gt; 'Invalid username or password.'</code>, when a user logs in. I wanted to be a bit more descriptive on this.</p>
  
  <p>I can see the translation files in <code>vendor/craftcms/cms/src/translations/[language code here]</code> so I assume theres a way of adding bespoke ones to this, but outside of the <code>vendor</code> folder. </p>
  
  <p>I just can't find it in the docs.</p>
  
Tags: <craft3><language>
Title: Custom translation file (Not using Locales/Multisite)
ThreadText: # Custom translation file (Not using Locales/Multisite)
  
  (Asked by: username_0 on 2019-10-03)
  
  Is it possible to make Craft 3 load a custom translation/language file? Even if not using multisite or locales?
  
  My use case for this is just to change the way certain things are said. E.g. `'Invalid username or password.' => 'Invalid username or password.'`, when a user logs in. I wanted to be a bit more descriptive on this.
  
  I can see the translation files in `vendor/craftcms/cms/src/translations/[language code here]` so I assume theres a way of adding bespoke ones to this, but outside of the `vendor` folder.
  
  I just can't find it in the docs.
  
  **Tags:** craft3, language
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-10-04. Score: 1 | Accepted answer
  
  You are looking for [Static Translations](https://docs.craftcms.com/v3/static-translations.html).
  
  You can add a translation file for English to English (or whatever language you are using) to override default translations. In your case, you'll want to override the `app` translation category:
  
  In your project folder:
  
  ```
  website.com/
  └── translations/
      └── en/
          └── app.php
  
  ```
  
  And in `app.php`:
  
  ```
  <?php
  
  return [
      'Invalid username or password.' => 'Something new'
  ];
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks! I managed to fix it by doing this. My issue was I was calling the file `site.php` not `app.php`. Doh.  
  
  ---
  
  