{"id":24598438,"url":"https://github.com/technobre/powerutils.globalization","last_synced_at":"2025-04-30T15:48:02.068Z","repository":{"id":37551720,"uuid":"430259313","full_name":"TechNobre/PowerUtils.Globalization","owner":"TechNobre","description":"Utils, helpers and extensions to work with globalization","archived":false,"fork":false,"pushed_at":"2025-04-09T21:59:51.000Z","size":206,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T15:47:50.338Z","etag":null,"topics":["csharp","dotnet","globalization","helpers","utils"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/PowerUtils.Globalization","language":"C#","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/TechNobre.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-21T02:55:17.000Z","updated_at":"2025-04-09T21:59:54.000Z","dependencies_parsed_at":"2024-01-18T01:11:30.590Z","dependency_job_id":"f25c8401-be94-4762-8375-17bb049e4317","html_url":"https://github.com/TechNobre/PowerUtils.Globalization","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechNobre%2FPowerUtils.Globalization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechNobre%2FPowerUtils.Globalization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechNobre%2FPowerUtils.Globalization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechNobre%2FPowerUtils.Globalization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechNobre","download_url":"https://codeload.github.com/TechNobre/PowerUtils.Globalization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251734313,"owners_count":21635114,"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":["csharp","dotnet","globalization","helpers","utils"],"created_at":"2025-01-24T12:16:23.839Z","updated_at":"2025-04-30T15:48:01.978Z","avatar_url":"https://github.com/TechNobre.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerUtils.Globalization\n\n![Logo](https://raw.githubusercontent.com/TechNobre/PowerUtils.Globalization/main/assets/logo/logo_128x128.png)\n\n***Utils, helpers and extensions to work with globalization***\n\n![Tests](https://github.com/TechNobre/PowerUtils.Globalization/actions/workflows/tests.yml/badge.svg)\n[![Mutation tests](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FTechNobre%2FPowerUtils.Globalization%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/TechNobre/PowerUtils.Globalization/main)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=TechNobre_PowerUtils.Globalization\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.Globalization)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=TechNobre_PowerUtils.Globalization\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.Globalization)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=TechNobre_PowerUtils.Globalization\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.Globalization)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=TechNobre_PowerUtils.Globalization\u0026metric=bugs)](https://sonarcloud.io/summary/new_code?id=TechNobre_PowerUtils.Globalization)\n\n[![NuGet](https://img.shields.io/nuget/v/PowerUtils.Globalization.svg)](https://www.nuget.org/packages/PowerUtils.Globalization)\n[![Nuget](https://img.shields.io/nuget/dt/PowerUtils.Globalization.svg)](https://www.nuget.org/packages/PowerUtils.Globalization)\n[![License: MIT](https://img.shields.io/github/license/TechNobre/PowerUtils.Globalization.svg)](https://github.com/TechNobre/PowerUtils.Globalization/blob/main/LICENSE)\n\n\n- [Support to ](#support-to-)\n- [How to use ](#how-to-use-)\n  - [Install NuGet package ](#install-nuget-package-)\n  - [Helpers ](#helpers-)\n  - [Extensions ](#extensions-)\n  - [Structures ](#structures-)\n- [Contribution ](#contribution-)\n\n\n\n## Support to \u003ca name=\"support-to\"\u003e\u003c/a\u003e\n- .NET 9.0\n- .NET 8.0\n- .NET 7.0\n- .NET 6.0\n- .NET 5.0\n- .NET 3.1\n- .NET Standard 2.1\n- .NET Framework 4.6.2 or more\n\n\n\n## How to use \u003ca name=\"how-to-use\"\u003e\u003c/a\u003e\n\n### Install NuGet package \u003ca name=\"installation\"\u003e\u003c/a\u003e\nThis package is available through Nuget Packages: https://www.nuget.org/packages/PowerUtils.Globalization\n\n**Nuget**\n```bash\nInstall-Package PowerUtils.Globalization\n```\n\n**.NET CLI**\n```bash\ndotnet add package PowerUtils.Globalization\n```\n\n\n\n### Helpers \u003ca name=\"helpers\"\u003e\u003c/a\u003e\n  - `UtilsGlobalization`\n    - **Properties:**\n      - `UtilsGlobalization.Countries`: Dictionary of countries;\n      - `UtilsGlobalization.CountryList`: List of countries;\n      - `UtilsGlobalization.CultureInfos`: Dictionary of culture informations;\n      - `UtilsGlobalization.CultureInfoList`: List of culture informations;\n    - **Methods:**\n      - `UtilsGlobalization.GetISONumeric(iso2)`: Return ISO numeric;\n      - `UtilsGlobalization.GetISO3(iso2)`: Return ISO3;\n      - `UtilsGlobalization.GetEnglishName(iso2)`: Return english name;\n      - `UtilsGlobalization.GetNativeName(iso2)`: Return native name;\n      - `UtilsGlobalization.GetNationalityName(iso2)`: Return nationality name;\n      - `UtilsGlobalization.GetIDDCode(iso2)`: Return IDDCode;\n      - `UtilsGlobalization.GetCultureInfo(cultureCode)`: Return the culture info;\n      - `UtilsGlobalization.IfExistISO3()`: Method to check if the country code ISO3 exist;\n      - `UtilsGlobalization.IfExistISO2()`: Method to check if the country code iso2 exist;\n\n  - `UtilsNumber`\n    - `UtilsNumber.GetDecimalSeparator(string languageCode)`: Return character for decimal separator;\n    - `UtilsNumber.GetDecimalSeparator(CultureInfo cultureInfo)`: Return character for decimal separator;\n    - `UtilsNumber.GetDecimalSeparator()`: Return character for decimal separator;\n    - `UtilsNumber.GetThousandSeparator(string languageCode)`: Return character for thousand separator;\n    - `UtilsNumber.GetThousandSeparator(CultureInfo cultureInfo)`: Return character for thousand separator;\n    - `UtilsNumber.GetThousandSeparator()`: Return character for thousand separator;\n\n\n### Extensions \u003ca name=\"extensions\"\u003e\u003c/a\u003e\n- `DateTimeExtensions`\n  - `DateTime.ToTimestamp()`: Convert datetime to timestamp (Unix timestamp is seconds past epoch)\n  - `DateTime.ToTimestampMS()`: Convert datetime to timestamp in milliseconds (Unix timestamp is seconds past epoch)\n  - `timestamp.FromTimestampToDateTime()`: Convert timestamp (Unix timestamp is seconds past epoch) to datetime\n\n- `NumbersExtensions`\n  - `string.ConvertToCulture(languageCode)`: Convert text number to text number culture;\n  - `string.ConvertToCulture(cultureInfo)`: Convert text number to text number culture;\n  - `string.ConvertToCulture()`: Convert text number to text number culture;\n  - `string.ConvertToDoubleCulture(string languageCode)`: Convert text number to double number;\n  - `string.ConvertToDoubleCulture(cultureInfo)`: Convert text number to double number;\n  - `string.ConvertToDoubleCulture()`: Convert text number to double number;\n  - `string.ConvertToDecimalCulture(languageCode)`: Convert text number to decimal number;\n  - `string.ConvertToDecimalCulture(cultureInfo)`: Convert text number to decimal number;\n  - `string.ConvertToDecimalCulture()`: Convert text number to decimal number;\n  - `double.ConvertToCulture(languageCode, decimalDigits = 2)`: Convert double number to text number culture;\n  - `double.ConvertToCulture(cultureInfo, decimalDigits = 2)`: Convert double number to text number culture;\n  - `double.ConvertToCulture(decimalDigits = 2)`: Convert double number to text number culture;\n  - `decimal.ConvertToCulture(languageCode, decimalDigits = 2)`: Convert decimal number to text number culture;\n  - `decimal.ConvertToCulture(cultureInfo, decimalDigits = 2)`: Convert decimal number to text number culture;\n  - `decimal.ConvertToCulture(decimalDigits = 2)`: Convert decimal number to text number culture;\n  - `float.ConvertToCulture(languageCode, decimalDigits = 2)`: Convert float number to text number culture;\n  - `float.ConvertToCulture(cultureInfo, decimalDigits = 2)`: Convert float number to text number culture;\n  - `float.ConvertToCulture( decimalDigits = 2)`: Convert float number to text number culture;\n  - `int.ConvertToCulture(languageCode)`: Convert int number to text number culture;\n  - `int.ConvertToCulture(cultureInfo)`: Convert int number to text number culture;\n  - `int.ConvertToCulture()`: Convert int number to text number culture;\n  - `uint.ConvertToCulture(languageCode)`: Convert uint number to text number culture;\n  - `uint.ConvertToCulture(cultureInfo)`: Convert uint number to text number culture;\n  - `uint.ConvertToCulture()`: Convert uint number to text number culture;\n  - `string.ConvertToShortCulture(string languageCode)`: Convert text number to short number;\n  - `string.ConvertToShortCulture(cultureInfo)`: Convert text number to short number;\n  - `string.ConvertToShortCulture()`: Convert text number to short number;\n  - `string.ConvertToUShortCulture(string languageCode)`: Convert text number to ushort number;\n  - `string.ConvertToUShortCulture(cultureInfo)`: Convert text number to ushort number;\n  - `string.ConvertToUShortCulture()`: Convert text number to ushort number;\n  - `string.ConvertToIntCulture(string languageCode)`: Convert text number to int number;\n  - `string.ConvertToIntCulture(cultureInfo)`: Convert text number to int number;\n  - `string.ConvertToIntCulture()`: Convert text number to int number;\n  - `string.ConvertToUIntCulture(string languageCode)`: Convert text number to uint number;\n  - `string.ConvertToUIntCulture(cultureInfo)`: Convert text number to uint number;\n  - `string.ConvertToUIntCulture()`: Convert text number to uint number;\n  - `string.ConvertToLongCulture(string languageCode)`: Convert text number to long number;\n  - `string.ConvertToLongCulture(cultureInfo)`: Convert text number to long number;\n  - `string.ConvertToLongCulture()`: Convert text number to long number;\n  - `string.ConvertToULongCulture(string languageCode)`: Convert text number to ulong number;\n  - `string.ConvertToULongCulture(cultureInfo)`: Convert text number to ulong number;\n  - `string.ConvertToULongCulture()`: Convert text number to ulong number;\n  - `string.ConvertToFloatCulture(string languageCode)`: Convert text number to float number;\n  - `string.ConvertToFloatCulture(cultureInfo)`: Convert text number to float number;\n  - `string.ConvertToFloatCulture()`: Convert text number to float number;\n\n\n### Structures \u003ca name=\"structures\"\u003e\u003c/a\u003e\n```csharp\npublic class Country\n{\n    public int ISONumeric { get; private set; }\n    public string ISO2 { get; private set; }\n    public string ISO3 { get; private set; }\n\n    public string EnglishName { get; private set; }\n    public string NativeName { get; private set; }\n    public string NationalityName { get; private set; }\n\n    public string Capital { get; private set; }\n    public string Continent { get; private set; }\n\n    public string CurrencyCode { get; private set; }\n    public string Domain { get; private set; }\n    public string IDDCode { get; private set; }\n}\n```\n\n\n\n## Contribution \u003ca name=\"contribution\"\u003e\u003c/a\u003e\n\nIf you have any questions, comments, or suggestions, please open an [issue](https://github.com/TechNobre/PowerUtils.Globalization/issues/new/choose) or create a [pull request](https://github.com/TechNobre/PowerUtils.Globalization/compare)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnobre%2Fpowerutils.globalization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnobre%2Fpowerutils.globalization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnobre%2Fpowerutils.globalization/lists"}