Sha256: d29fcd77515b4d03cd6702757ab32e1856541fe8407f547ca24d2b0764a962f4
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
# Translation Key Exists (`TranslationKeyExists`) Checks if translation key is defined in the default language ## Check Details This check is aimed at avoiding missing translation error. :-1: Examples of **incorrect** code for this check: ```liquid {{ 'undefined.key' | t }} ``` :+1: Examples of **correct** code for this check: ```liquid {{ 'defined.key' | t }} ## Check Options The default configuration for this check is the following: ```yaml TranslationKeyExists: enabled: true ``` ## When Not To Use It There should be no cases where disabling this rule is needed. For keys that are set via UI, and hence should not be part of the codebase, use proper 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
platformos-check-0.4.12 | docs/checks/translation_key_exists.md |
platformos-check-0.4.11 | docs/checks/translation_key_exists.md |
platformos-check-0.4.10 | docs/checks/translation_key_exists.md |