Skip to content

Files

Latest commit

 

History

History
35 lines (27 loc) · 611 Bytes

Airbnb-PhraseBundleKeys.md

File metadata and controls

35 lines (27 loc) · 611 Bytes

Pattern: Mismatched Phrase bundle and translation keys

Issue: -

Description

Prefer matching Phrase Bundle and translation call keys.

Examples

# bad
def phrases
  {
    "shortened_key" => t(
      "my_real_translation_key",
      default: 'Does not matter',
    ),
  }
end

# good
def phrases
  {
    "my_real_translation_key" => t(
      "my_real_translation_key",
      default: 'Does not matter',
    ),
  }
end

Further Reading