Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 759 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 759 Bytes

Sozluk

Sozluk(meaning 'dictionary' in Turkish) is a localization library for Solar2D (and probably LÖVE 2D).

Main difference of this library is that it uses the power of Lua tables (files) to store localization data, instead of text or json files. This will let you easily update your games/apps over 50MB on Google Play without coping with patch files.

Basic instructions

Import library

local Sozluk = require "Sozluk"

Initialize Sozluk object

Sozluk.init()

Set path of your translations folder

Sozluk.setTranslationFolder("translations")

Set translation

Sozluk.setSelectedTranslation("english")

Get string with key value

Sozluk.getString("start")