Skip to content

Support for keys in locale files #23

@tylergraf

Description

@tylergraf

In my locale files, I've got the strings somewhat namespaced like this:

  "heading": {
    "additionalInfo": "Additional Information",
    "alternateNames": "Alternate Names"
  },
  "label": {
    "any": "Any",
    "placeName": "Place Name",
    "jurisdiction": "Jurisdiction"
  },
  "placeholder": {
    "jurisdiction": "Search Jurisdictions",
    "placeName": "Search Place Name"
  },
  "tooltip": {
    "distanceHelp": "Specify 'k' for kilometers and 'm' for miles. e.g. '30m'"
  },
  "button": {
    "advanced": "Advanced",
    "backToResults": "Back to Results",
    "clear": "Clear",
    "search": "Search"
  }
}

So in my template I would put {button.advanced}, but it's not replaced in the template.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions