Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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).
- Host: GitHub
- URL: https://github.com/sekodev/sozluk
- Owner: sekodev
- License: mit
- Created: 2015-04-15T16:11:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T14:48:35.000Z (over 2 years ago)
- Last Synced: 2024-07-31T09:10:16.649Z (3 months ago)
- Topics: dictionary, library, localization, solar2d, translation
- Language: Lua
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-solar2d - sozluk
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")
```