<commit_before>DRLocalization
==============

Simple Objective-C library created to make non-stadard localizations of iOS applications easier. The source is based on Baglan's MCLocalization library with some changes made to fulfil my project requirements. MCLocalization could be found here: https://raw.github.com/Baglan/MCLocalization

## Loading translations

DRLocalization can load translations directly from NSDictionary or from a file in JSON format, both should contains structure like in example bellow:  

  	{
	    "en": {
	        "greeting": "Hello, %name%!",
	        "message": "Tap on the buttons below to switch languages",
	    },
	    "pl": {
	        "greeting": "Witaj, %name%!",
	        "message": "Dotknij przycisku poniżej aby wybrać język",
	    }
	}

Collection of strings for each language is referenced by a canonicalized IETF BCP 47 language identifier (the same identifier used in NSLocale). Strings in a collection are further identified by keys.

## Installation

There is one class called DRLocalization, both files DRLocalization.h and DRLocalization.m should be included in the project you want to use it. You should only include a header file of that class in your code:

```objective-c
#include "DRLocalization.h"
```

You chould also install the library using CocoaPods. To do so, you will need to add this line to your Podfile:

	pod 'DRLocalization', :git => 'https://github.com/darrarski/DRLocalization.git'<commit_msg>Read-me file updated<commit_after>DRLocalization
==============

Simple Objective-C library created to make non-stadard localizations of iOS applications easier. The source is based on Baglan's MCLocalization library with some changes made to fulfil my project requirements. MCLocalization could be found here: https://raw.github.com/Baglan/MCLocalization

## Loading translations

DRLocalization can load translations directly from NSDictionary or from a file in JSON format, both should contains structure like in example bellow:  

  	{
	    "en": {
	        "greeting": "Hello, %name%!",
	        "message": "Tap on the buttons below to switch languages",
	    },
	    "pl": {
	        "greeting": "Witaj, %name%!",
	        "message": "Dotknij przycisku poniżej aby wybrać język",
	    }
	}

Collection of strings for each language is referenced by a canonicalized IETF BCP 47 language identifier (the same identifier used in NSLocale). Strings in a collection are further identified by keys.

## Installation

There is one class called DRLocalization, both files DRLocalization.h and DRLocalization.m should be included in the project you want to use it. You should only include a header file of that class in your code:

```objective-c
#include "DRLocalization.h"
```

You chould also install the library using CocoaPods. To do so, you will need to add this line to your Podfile:

	pod "DRLocalization", :git => "https://github.com/darrarski/DRLocalization-iOS.git"
{'fraction_non_alphanumeric': 0.08182748039549949, 'fraction_numerical': 0.0013637913399249914, 'mean_word_length': 4.084922010398613, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7161777', 'n_tokens_mistral': 832, 'n_tokens_neox': 792, 'n_words': 359}