AUR4000

Error Message

AUR4000: Translation key not found

Description

This error occurs when the i18n system cannot find a translation for the requested key in any of the loaded translation resources. This typically happens when:

  1. The translation key doesn't exist in the current locale's translation files

  2. The translation files haven't been loaded properly

  3. There's a typo in the translation key

  4. The fallback locale doesn't contain the key either

Common Scenarios

Missing Translation Key

// Translation file (en.json)
{
  "welcome": "Welcome",
  "goodbye": "Goodbye"
}

// Template usage
<template>
  <p>${'hello' & t}</p> <!-- AUR4000: 'hello' key doesn't exist -->
  <p>${'welcome' & t}</p> <!-- ✅ Works fine -->
</template>

Typo in Translation Key

Solutions

1. Add the Missing Translation Key

2. Verify Translation Files Are Loaded

3. Use Fallback Values

4. Check Key Existence Programmatically

Debugging Tips

  1. Check Console: Look for i18n loading errors in browser console

  2. Verify File Structure: Ensure translation files are in the correct location

  3. Test Key Existence: Use browser dev tools to check loaded translations

  4. Fallback Locale: Ensure fallback locale contains all necessary keys

Last updated

Was this helpful?