{"id":21828473,"url":"https://github.com/fluidsonic/fluid-i18n","last_synced_at":"2025-04-14T05:50:40.113Z","repository":{"id":43325804,"uuid":"289796101","full_name":"fluidsonic/fluid-i18n","owner":"fluidsonic","description":"Kotlin multiplatform internationalization library (experimental)","archived":false,"fork":false,"pushed_at":"2023-06-24T03:31:00.000Z","size":1815,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T19:41:42.373Z","etag":null,"topics":["i18n","internationalization","kotlin","kotlin-multiplatform","localization"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/fluidsonic.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}},"created_at":"2020-08-24T01:11:53.000Z","updated_at":"2025-02-24T09:11:22.000Z","dependencies_parsed_at":"2022-09-26T22:10:41.888Z","dependency_job_id":null,"html_url":"https://github.com/fluidsonic/fluid-i18n","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluidsonic%2Ffluid-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluidsonic%2Ffluid-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluidsonic%2Ffluid-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluidsonic%2Ffluid-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluidsonic","download_url":"https://codeload.github.com/fluidsonic/fluid-i18n/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830389,"owners_count":21168272,"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":["i18n","internationalization","kotlin","kotlin-multiplatform","localization"],"created_at":"2024-11-27T18:16:34.692Z","updated_at":"2025-04-14T05:50:40.091Z","avatar_url":"https://github.com/fluidsonic.png","language":"Kotlin","funding_links":[],"categories":["国际化"],"sub_categories":["文件同步"],"readme":"fluid-i18n\n============\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.fluidsonic.i18n/fluid-i18n?label=Maven%20Central)](https://search.maven.org/artifact/io.fluidsonic.i18n/fluid-i18n)\n[![Tests](https://github.com/fluidsonic/fluid-i18n/workflows/Tests/badge.svg)](https://github.com/fluidsonic/fluid-i18n/actions?workflow=Tests)\n[![Kotlin](https://img.shields.io/badge/Kotlin-1.8.22%20(Darwin,%20JVM,%20JS)-blue.svg)](https://github.com/JetBrains/kotlin/releases/v1.8.22)\n[![#fluid-libraries Slack Channel](https://img.shields.io/badge/slack-%23fluid--libraries-543951.svg?label=Slack)](https://kotlinlang.slack.com/messages/C7UDFSVT2/)\n\nKotlin multiplatform internationalization support backed by [Unicode CLDR](http://cldr.unicode.org/) data.  \n**Highly experimental. Feel free to contribute!**\n\n\n\nInstallation\n------------\n\n`build.gradle.kts`:\n\n```kotlin\ndependencies {\n\timplementation(\"io.fluidsonic.i18n:fluid-i18n:0.13.0\")\n}\n```\n\nUsage\n-----\n\n### Country names\n\n```kotlin\nval usa = Country.byCode(\"US\")\nprintln(usa.name) // United States\nprintln(usa.shortName) // US\nprintln(usa.variantName) // null\n\nval locale = Locale.forLanguage(\"de\")\nprintln(usa.name(locale)) // Vereinigte Staaten\nprintln(usa.shortName(locale)) // USA\nprintln(usa.variantName(locale)) // null\n\nval ivoryCoast = Country.forCode(\"CI\")\nprintln(usa.name) // Côte d’Ivoire\nprintln(usa.shortName) // null\nprintln(usa.variantName) // Ivory Coast\n```\n\nBuilding\n--------\n\nBuild generated Kotlin files for Unicode CLDR data:\n\n```shell\n./gradlew generateCode   # macOS\ngradlew generateCode     # Windows\n```\n\nLicense\n-------\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluidsonic%2Ffluid-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluidsonic%2Ffluid-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluidsonic%2Ffluid-i18n/lists"}