{"id":16375756,"url":"https://github.com/scarsz/configuralize","last_synced_at":"2025-10-26T08:30:52.695Z","repository":{"id":45249990,"uuid":"204583813","full_name":"Scarsz/Configuralize","owner":"Scarsz","description":"YAML/JSON configuration library with built-in internationalization","archived":false,"fork":false,"pushed_at":"2022-12-14T20:53:52.000Z","size":44,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T17:13:25.001Z","etag":null,"topics":["config","configuration","java","json","library","yaml"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Scarsz.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":"2019-08-27T00:14:33.000Z","updated_at":"2024-07-07T07:52:18.000Z","dependencies_parsed_at":"2023-01-29T01:02:21.966Z","dependency_job_id":null,"html_url":"https://github.com/Scarsz/Configuralize","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/Scarsz%2FConfiguralize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scarsz%2FConfiguralize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scarsz%2FConfiguralize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scarsz%2FConfiguralize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scarsz","download_url":"https://codeload.github.com/Scarsz/Configuralize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238293298,"owners_count":19448158,"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":["config","configuration","java","json","library","yaml"],"created_at":"2024-10-11T03:22:03.499Z","updated_at":"2025-10-26T08:30:52.691Z","avatar_url":"https://github.com/Scarsz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Configuralize\nA config library that doesn't waste your time. Built-in internationalization.\nSupports .yml files via SnakeYAML and .json files via json-simple.\n\n# Dependency information\n```xml\n\u003crepository\u003e\n    \u003cid\u003escarsz\u003c/id\u003e\n    \u003curl\u003ehttps://nexus.scarsz.me/content/groups/public/\u003c/url\u003e\n\u003c/repository\u003e\n\n\u003cdependency\u003e\n    \u003cgroupId\u003egithub.scarsz\u003c/groupId\u003e\n    \u003cartifactId\u003econfiguralize\u003c/artifactId\u003e\n    \u003cversion\u003e1.4.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n# Example usage\nFiles are defined as their own folder in resources. In the below example,\nthe `config` and `messages` config resources have `en`, English; `fr`, French;\nand `de`, German translations.\n```\n/resources/config/en.yml\n/resources/config/fr.yml\n/resources/config/de.yml\n/resources/messages/en.yml\n/resources/messages/fr.yml\n/resources/messages/de.yml\n```\n```java\nDynamicConfig config = new DynamicConfig();\nconfig.addSource(Test.class, \"config\", new File(\"config.yml\"));\nconfig.addSource(Test.class, \"messages\", new File(\"messages.yml\"));\nconfig.saveAllDefaults(false /* overwrite files if they already exist? */);\nconfig.loadAll();\n\n// given either the config or messages resources contain a key for \"Test key\"...\nString value = config.getString(\"Test key\");\nOptional\u003cString\u003e optionalValue = config.getOptionalString(\"Test key\");\nString otherwiseValue = config.getStringElse(\"Test key\", \"value if key not in either resource\");\n```\n\nSee more detailed usage in https://github.com/Scarsz/Configuralize/tree/master/src/test.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarsz%2Fconfiguralize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscarsz%2Fconfiguralize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscarsz%2Fconfiguralize/lists"}