{"id":17963944,"url":"https://github.com/almasb/fx-localization","last_synced_at":"2025-08-16T10:33:37.801Z","repository":{"id":55376048,"uuid":"317990816","full_name":"AlmasB/fx-localization","owner":"AlmasB","description":"A tiny JavaFX library that provides localization API","archived":false,"fork":false,"pushed_at":"2021-01-04T16:51:38.000Z","size":12,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T12:42:50.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlmasB.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-12-02T21:03:55.000Z","updated_at":"2024-09-14T16:39:42.000Z","dependencies_parsed_at":"2022-08-14T22:50:42.008Z","dependency_job_id":null,"html_url":"https://github.com/AlmasB/fx-localization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlmasB%2Ffx-localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlmasB%2Ffx-localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlmasB%2Ffx-localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlmasB%2Ffx-localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlmasB","download_url":"https://codeload.github.com/AlmasB/fx-localization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230033161,"owners_count":18162576,"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-10-29T11:45:57.049Z","updated_at":"2024-12-16T22:23:04.016Z","avatar_url":"https://github.com/AlmasB.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## fx-localization\n\nA tiny JavaFX library that provides localization API.\n\n### Usage\n\n```java\npublic class BasicApp extends Application {\n\n    @Override\n    public void start(Stage stage) throws Exception {\n        FXLocal local = new FXLocal(Locale.ENGLISH);\n        local.addLocaleData(Locale.ENGLISH, Map.of(\"someKey\", \"someValueEnglish\"));\n        local.addLocaleData(Locale.FRENCH, Map.of(\"someKey\", \"someValueFrench\"));\n        \n        Button button = new Button();\n        button.textProperty().bind(local.localizedStringBinding(\"someKey\"));\n        button.setOnAction(e -\u003e {\n            local.setSelectedLocale(Locale.FRENCH);\n        });\n\n        stage.setScene(new Scene(new StackPane(button), 800, 600));\n        stage.show();\n    }\n\n    public static void main(String[] args) {\n        launch(args);\n    }\n}\n```\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.almasb\u003c/groupId\u003e\n    \u003cartifactId\u003efx-localization\u003c/artifactId\u003e\n    \u003cversion\u003e1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\n```groovy\nimplementation 'com.github.almasb:fx-localization:1'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmasb%2Ffx-localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmasb%2Ffx-localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmasb%2Ffx-localization/lists"}