{"id":20970460,"url":"https://github.com/crossgeeks/multilingualplugin","last_synced_at":"2025-04-06T04:13:25.585Z","repository":{"id":60773465,"uuid":"99753672","full_name":"CrossGeeks/MultilingualPlugin","owner":"CrossGeeks","description":"Multilingual Plugin for Xamarin and Windows","archived":false,"fork":false,"pushed_at":"2020-05-20T21:02:12.000Z","size":1805,"stargazers_count":99,"open_issues_count":13,"forks_count":40,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-30T03:07:05.358Z","etag":null,"topics":["culture","device-culture","language","nuget","resx","specific-cultures","xamarin-forms"],"latest_commit_sha":null,"homepage":"","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/CrossGeeks.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":"2017-08-09T01:51:31.000Z","updated_at":"2025-01-03T20:37:04.000Z","dependencies_parsed_at":"2022-10-04T15:27:19.318Z","dependency_job_id":null,"html_url":"https://github.com/CrossGeeks/MultilingualPlugin","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/CrossGeeks%2FMultilingualPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrossGeeks%2FMultilingualPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrossGeeks%2FMultilingualPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrossGeeks%2FMultilingualPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrossGeeks","download_url":"https://codeload.github.com/CrossGeeks/MultilingualPlugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430878,"owners_count":20937874,"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":["culture","device-culture","language","nuget","resx","specific-cultures","xamarin-forms"],"created_at":"2024-11-19T03:58:31.165Z","updated_at":"2025-04-06T04:13:25.436Z","avatar_url":"https://github.com/CrossGeeks.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Multilingual Plugin (DEPRECATED)\nSimple cross platform plugin for handling language localization.\n\n\n# **IMPORTANT NOTE**:\n\n**THIS PLUGIN IS DECPRECATED - NOT UNDER DEVELOPMENT AND NOT SUPPORTED**\n\n**This plugin is no longer needed. More information here:**\n\nhttps://xamgirl.com/handle-multilingual-in-xamarin-forms-without-any-plugin/\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/CrossGeeks/MultilingualPlugin/blob/master/multilingual.gif\" height=\"400\" width=\"240\" title=\"Multilingual\"/\u003e\n\u003c/p\u003e\n\n## Features\n\n- Get and set current culture\n- Get device culture\n- Get culture list\n- Get specific culture by name\n\n**Platform Support**\n\n|Platform|Version|\n| ------------------- | :------------------: |\n|Xamarin.iOS|iOS 7+|\n|Xamarin.Android|API 10+|\n|Windows 10 UWP|10+|\n|Xamarin.Mac|All|\n|watchOS|All|\n|tvOS|All|\n\n### Setup\n* Available on NuGet: http://www.nuget.org/packages/Plugin.Multilingual [![NuGet](https://img.shields.io/nuget/v/Plugin.Multilingual.svg?label=NuGet)](https://www.nuget.org/packages/Plugin.Multilingual/)\n* Install into your PCL project and Client projects.\n\n### Getting Started\n\n1. Add your Resx files \n\n\u003cimg src=\"https://github.com/CrossGeeks/MultilingualPlugin/blob/master/multilingual - setup1.png\"  title=\"Multilingual\" height=\"350\" width=\"500\" /\u003e\n\n\u003cimg src=\"https://github.com/CrossGeeks/MultilingualPlugin/blob/master/multilingual - setup2.png\"  title=\"Multilingual\"/\u003e\n\nAdd one resx file per each language you want to support. \"It must follow a specific naming convention: use the same filename as the base resources file (eg. AppResources) followed by a period (.) and then the language code\".\n\n2. Set the culture of your resource class file when initializing your application. \n\nFor example:\n```csharp\n  AppResources.Culture = CrossMultilingual.Current.DeviceCultureInfo;\n```\n\u003ci\u003eIf you are using Xamarin Forms it would be in your App.cs\u003c/i\u003e\n\n### Xamarin Forms Specifics\n\nWhen installing the plugin it will create a **TranslateExtension.txt** file in folder Helpers, rename the extension for this file to **TranslateExtension.cs**.\n\nIn **TranslateExtension.cs** file in the constant **ResourceId** by default it will assume your resource file is added in the root of the project and the resx file is named as AppResources. If you added it to a folder or named the resx file differently you can change it there.\n\n\u003cimg src=\"https://github.com/CrossGeeks/MultilingualPlugin/blob/master/multilingual -forms1.png\"  title=\"Multilingual\"/\u003e\n\nXAML sample usage:\n\n\u003cimg src=\"https://github.com/CrossGeeks/MultilingualPlugin/blob/master/multilingual -xaml.png\"  title=\"Multilingual\"/\u003e\n\n### iOS Considerations\n\n\u003cimg src=\"https://github.com/CrossGeeks/MultilingualPlugin/blob/master/multilingual - step1.png\"  title=\"Multilingual\" height=\"150\" width=\"500\" /\u003e\n\nIn the Info.plist file add the keys **Localizations** \u0026 **Localization native development region** to change the user interface OS elements. It will take the device language.\n\n\u003cimg src=\"https://github.com/CrossGeeks/MultilingualPlugin/blob/master/multilingual - step2.png\" title=\"Multilingual\" height=\"250\" width=\"400\" /\u003e\n\n### API Usage\n\nCall **CrossMultilingual.Current** from any project or PCL to gain access to APIs.\n\n**CurrentCultureInfo**\n\nGets and set the current culture. By default will be set to the device culture.\n\nUsage sample:\n```csharp\n  CrossMultilingual.Current.CurrentCultureInfo = new CultureInfo(\"en\");\n```\nNote: After changing the current culture is important to update your resx class culture. As follows:\n\n```csharp\nAppResources.Culture = CrossMultilingual.Current.CurrentCultureInfo;\n```\n\n**DeviceCultureInfo**\n\nGets the device culture\n\nUsage sample:\n```csharp\n  CrossMultilingual.Current.DeviceCultureInfo;\n```\n\n**CultureInfoList**\n\nGets all cultures supported in .NET Framework (neutral \u0026 specific cultures)\n\nUsage sample:\n```csharp\n  CrossMultilingual.Current.CultureInfoList;\n```\n\n\n**NeutralCultureInfoList**\n\nGets all cultures associated with a language (not specific to a country/region).\n\nUsage sample:\n```csharp\n  CrossMultilingual.Current.NeutralCultureInfoList;\n```\n\n\n**GetCultureInfo**\n\nGets a specific culture by language code.\n\nUsage sample:\n```csharp\n  CrossMultilingual.Current.GetCultureInfo(\"es\");\n```\n\nIn case you want to know more about localization:\n\nhttps://developer.xamarin.com/guides/xamarin-forms/advanced/localization/\n\n### Contributors\n\n* [Charlin Agramonte](https://github.com/char0394)\n* [Rendy Del Rosario](https://github.com/rdelrosario)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrossgeeks%2Fmultilingualplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrossgeeks%2Fmultilingualplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrossgeeks%2Fmultilingualplugin/lists"}