{"id":15289163,"url":"https://github.com/makkarpov/scalingua","last_synced_at":"2025-10-29T06:30:18.960Z","repository":{"id":54985036,"uuid":"55992215","full_name":"makkarpov/scalingua","owner":"makkarpov","description":"A simple gettext-like internationalization (aka i18n) library for Scala and Play Framework","archived":false,"fork":false,"pushed_at":"2024-08-17T07:13:05.000Z","size":273,"stargazers_count":53,"open_issues_count":3,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-06T17:25:55.162Z","etag":null,"topics":["gettext","i18n","internationalization","macros","sbt-plugin","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/makkarpov.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2016-04-11T17:18:58.000Z","updated_at":"2023-07-07T10:58:52.000Z","dependencies_parsed_at":"2024-10-14T20:10:44.525Z","dependency_job_id":null,"html_url":"https://github.com/makkarpov/scalingua","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makkarpov%2Fscalingua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makkarpov%2Fscalingua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makkarpov%2Fscalingua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makkarpov%2Fscalingua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makkarpov","download_url":"https://codeload.github.com/makkarpov/scalingua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238574781,"owners_count":19494724,"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":["gettext","i18n","internationalization","macros","sbt-plugin","scala"],"created_at":"2024-09-30T15:59:27.760Z","updated_at":"2025-10-29T06:30:18.260Z","avatar_url":"https://github.com/makkarpov.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"Scalingua [![Build Status](https://travis-ci.org/makkarpov/scalingua.svg?branch=master)](https://travis-ci.org/makkarpov/scalingua) [![Latest version](https://maven-badges.herokuapp.com/maven-central/ru.makkarpov/scalingua_2.11/badge.svg?subject=version)](http://search.maven.org/#search%7Cga%7C1%7Cscalingua%20AND%20g%3A%22ru.makkarpov%22) [![Join the chat at https://gitter.im/makkarpov/scalingua](https://badges.gitter.im/makkarpov/scalingua.svg)](https://gitter.im/makkarpov/scalingua?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n=========\n\nHave you ever wondered that there is no **gettext**-like library for Scala? **Scalingua** is here to fix it! It comes with\nlightweight runtime library and full-featured compile-time macros and SBT plugin that will combine the powers of **gettext** \nand **Scala** in a single library.\n\nScalingua consists of four modules:\n\n * `core` — a minimal runtime components for internationalization. It's very lightweight (~ 30 kB) and provides basic\n   functions like loading precompiled translations.\n * `scalingua` itself — library with macros that have these features:\n    * String interpolator that makes internationalization of strings as easy as writing one letter before them;\n    * Plural string interpolator that adds plural suffixes for you;\n    * Macros for strings with contexts (`msgctxt`) and plural strings;\n    * Macros leaves no dependency on `scalingua` library — you can include it in `provided` scope and it will not break anything;\n    * Macros will extract all your strings to separate `*.pot` file every compilation run and keep this file up-to-date with during incremental compilation;\n    * You can translate more complex formats like HTML — all placeholders will be escaped, so no XSS attacks are possible;\n    * You can re-use existing macros from this library to implement custom translation utilities (e.g. create `th` interpolator that will translate HTML) or move `I18n` method to your `Utils` object, but in this case you will have dependency on `scalingua`\n * `scalingua-sbt` — SBT plugin with small but important task:\n    * Automatically sets compiler parameters so you don't have to remember them;\n    * Parses `*.po` files and compiles them to efficient binary files and Scala classes.\n * `scalingua-play` — Integration module for Play framework:\n    * Dependency injection bindings to summon `Messages` through DI;\n    * HTML output format with ready to use functions and interpolators;\n    * Extraction of visitor language from request headers.\n\nGetting started\n===============\n\n* [Using with Scala](https://github.com/makkarpov/scalingua/wiki/Using-with-Scala) in projects like GUI and console applications\n* [Using with Play](https://github.com/makkarpov/scalingua/wiki/Using-with-Play) in projects based on Play Framework\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakkarpov%2Fscalingua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakkarpov%2Fscalingua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakkarpov%2Fscalingua/lists"}