Sha256: b72d96bea31b4ebf1444b1a82beb263d4a8b9e73bf58ed021b6f8294cf26129e
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
# Translation Key Exists (`TranslationKeyExists`) This check ensures that translation keys are defined in the default language, aiming to prevent missing translation errors. ## Examples The following examples show code snippets that either fail or pass this check: ### ✗ Incorrect Code Example (Avoid using this): ```liquid {{ 'undefined.key' | t }} ``` ### ✓ Correct Code Example (Use this instead): ```liquid {{ 'defined.key' | t }} ## Configuration Options The default configuration for this check: ```yaml TranslationKeyExists: enabled: true ``` ## Disabling This Check There should be no need to disable this rule. For keys set via the UI and not intended to be part of the codebase, use the appropriate configuration option in [app/config.yml](https://documentation.platformos.com/developer-guide/platformos-workflow/codebase/config). ## Version This check has been introduced in platformOS Check 0.4.10. ## Resources - [Rule Source][codesource] - [Documentation Source][docsource] [codesource]: /lib/platformos_check/checks/translation_key_exists.rb [docsource]: /docs/checks/translation_key_exists.md
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
platformos-check-0.4.14 | docs/checks/translation_key_exists.md |
platformos-check-0.4.13 | docs/checks/translation_key_exists.md |