README.markdown in parsi-localize-0.1.2 vs README.markdown in parsi-localize-0.1.3

- old
+ new

@@ -4,17 +4,28 @@ Change I18n localize to use parsi digits and jalaly dates in farsi (فارسی) locale. This gem contains two sections ParsiDigits ----------- -Simply change digits in a string/integer/float to unicode parsi digits. +Simply change digits in a string/integer/float to unicode parsi digits: -Example: - require 'parsi_digits' - ‪"15,000 تومان".with_parsi_digits => ‫"۱۵,۰۰۰ تومان" - 123.25.with_parsi_digits => "۱۲۳/۲۵" + ‪"15,000 تومان".with_parsi_digits + => ‫"۱۵,۰۰۰ تومان" + 123.25.with_parsi_digits + => "۱۲۳/۲۵" +It also dose the reverse action: + + "۱۲۳۴۵".with_western_digits + => "12345" + +And it undersanad parsi digits (which is useful especially for input forms): + + "۱۲۳۴۵".to_i + => 12345 + "۱۹/۸".to_f + => 19.8 ParsiLocalize ------------- Change behaivor of I18n#localize so that it localize digits and dates in 'farsi' locale.