Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sekodev/sozluk

Sozluk(meaning 'dictionary' in Turkish) is a localization library for Solar2D (and probably LÖVE 2D).
https://github.com/sekodev/sozluk

dictionary library localization solar2d translation

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

        

## Sozluk

Sozluk(meaning 'dictionary' in Turkish) is a localization library for [Solar2D](https://solar2d.com/) (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**
```sh
local Sozluk = require "Sozluk"
```

**Initialize Sozluk object**
```sh
Sozluk.init()
```

**Set path of your translations folder**
```sh
Sozluk.setTranslationFolder("translations")
```

**Set translation**
```sh
Sozluk.setSelectedTranslation("english")
```

**Get string with key value**
```sh
Sozluk.getString("start")
```