{"id":51121883,"url":"https://github.com/ghidinelli/g11n.cfc","last_synced_at":"2026-06-25T03:30:46.755Z","repository":{"id":150734822,"uuid":"45965372","full_name":"ghidinelli/g11n.cfc","owner":"ghidinelli","description":"A ColdFusion Component that helps with Globalization (g11n) - Internationalization (i18n) and Localization (l10n)","archived":false,"fork":false,"pushed_at":"2015-11-11T07:20:34.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-04T14:13:19.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ColdFusion","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghidinelli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-11T07:04:09.000Z","updated_at":"2023-04-12T12:52:51.955Z","dependencies_parsed_at":"2023-04-12T12:52:41.849Z","dependency_job_id":null,"html_url":"https://github.com/ghidinelli/g11n.cfc","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ghidinelli/g11n.cfc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghidinelli%2Fg11n.cfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghidinelli%2Fg11n.cfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghidinelli%2Fg11n.cfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghidinelli%2Fg11n.cfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghidinelli","download_url":"https://codeload.github.com/ghidinelli/g11n.cfc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghidinelli%2Fg11n.cfc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34758773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-25T03:30:46.670Z","updated_at":"2026-06-25T03:30:46.746Z","avatar_url":"https://github.com/ghidinelli.png","language":"ColdFusion","funding_links":[],"categories":[],"sub_categories":[],"readme":"# g11n.cfc\nA ColdFusion Component that helps with Globalization (g11n) - Internationalization (i18n) and Localization (l10n)\n\nFor a primer on Globalization with ColdFusion, check [https://gist.github.com/coldfusionPaul/3779416 this gist] from Paul Hastings (who knows a ton about g11n).\n\nSome assumptions:\n\n* Your content is in utf-8 and stored in the database as unicode\n* You have `\u003ccfprocessingdirective pageencoding=\"UTF-8\"/\u003e` everywhere\n* You realize the built-in locale name and LS* functions are inadequate\n\nUsing g11n.cfc is easy:\n\n```\ng11n = createObject(\"component\", \"g11n\").init(locale = \"en_US\", tzid = \"US/Pacific\");\nwriteOutput(g11n.getDateMask(\"short\")); // M/d/yy h:mm a\nwriteOutput(g11n.formatDateTime(now(), \"short\")); // now() formatted as 'M/d/yy h:mm a' in Pacific time\nwriteOutput(g11n.formatCurrency(50000.50)); // $50,000.50\n```\n\nYou can also pass the desired locale and timezone to most methods or change the default:\n\n```\nwriteOutput(g11n.getDateMask(locale = \"en_GB\", mask = \"short\")); // dd/MM/yy HH:mm\ng11n.setDefaultLocale(\"en_GB\");\nwriteOutput(g11n.formatCurrency(50000.50)); // £50.000,50\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghidinelli%2Fg11n.cfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghidinelli%2Fg11n.cfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghidinelli%2Fg11n.cfc/lists"}