{"id":20988479,"url":"https://github.com/engagesoftware/elm-dnn-localization","last_synced_at":"2025-05-14T18:31:23.179Z","repository":{"id":52430897,"uuid":"117151797","full_name":"EngageSoftware/elm-dnn-localization","owner":"EngageSoftware","description":"Helpers for working with DNN localization in Elm","archived":false,"fork":false,"pushed_at":"2024-11-01T12:57:44.000Z","size":82,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-01T13:35:44.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/engagesoftware/elm-dnn-localization/latest","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EngageSoftware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-11T20:48:44.000Z","updated_at":"2024-11-01T12:57:41.000Z","dependencies_parsed_at":"2024-04-02T14:30:17.790Z","dependency_job_id":"787be789-de6d-4a27-bcaf-e42e4dbc98a2","html_url":"https://github.com/EngageSoftware/elm-dnn-localization","commit_stats":{"total_commits":56,"total_committers":4,"mean_commits":14.0,"dds":0.4821428571428571,"last_synced_commit":"700b898947320a6dd8b1b8dca8f87a64e48c8ad8"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngageSoftware%2Felm-dnn-localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngageSoftware%2Felm-dnn-localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngageSoftware%2Felm-dnn-localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngageSoftware%2Felm-dnn-localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EngageSoftware","download_url":"https://codeload.github.com/EngageSoftware/elm-dnn-localization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225304451,"owners_count":17453158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T06:21:14.058Z","updated_at":"2024-11-19T06:21:16.006Z","avatar_url":"https://github.com/EngageSoftware.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-dnn-localization\n\nHelpers for working with Engage's DNN localization.\n\nTo get started, decode an array of objects into a `Localization` value (which is just an alias for `Dict String String`).\n\n```elm\nimport Dict\nimport Engage.Localization as Localization exposing (Localization)\nimport Json.Decode as Decode\n\nlocalizationJson : String\nlocalizationJson = \"\"\"\n    [\n        { \"key\": \"FirstName.Text\", \"value\": \"First Name:\" },\n        { \"key\": \"LastName.Text\", \"value\": \"Last Name:\" }\n    ]\n    \"\"\"\n\nmyLocalization : Localization\nmyLocalization =\n    case localizationJson |\u003e Decode.decodeString Localization.decoder of\n        Ok localization -\u003e\n            localization\n        Err _ -\u003e\n            Dict.empty\n\ntype alias MyModel =\n    { localization: Localization\n    }\n\nmyModel : MyModel\nmyModel = MyModel myLocalization\n\nLocalization.localizeString \"FirstName.Text\" myModel\n--\u003e \"First Name:\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengagesoftware%2Felm-dnn-localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengagesoftware%2Felm-dnn-localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengagesoftware%2Felm-dnn-localization/lists"}