Skip to content

Instantly share code, notes, and snippets.

@hayatbiralem
hayatbiralem / String.toLatinFromTurkish.js
Created November 23, 2016 15:22
Bir metin içindeki Türkçe karakterleri Latin karakterlere dönüştürür.
if (typeof String.prototype.toLatinFromTurkish !== "function") {
String.prototype.toLatinFromTurkish = function() {
var string = this;
var letters = {
"Ğ":"G",
"Ü":"U",
"Ş":"S",
"İ":"I",
"Ö":"O",
"Ç":"C",