Skip to content

Upgration/Languages-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Languages Module

The code for Language module that uses the Languages Repo.

Reporting Issues

I'll fix any issue listed in here.

Usage

This is an example on how you can use this addon in your addon.

First you must instasitate the language like this:

MYLANG = LANG:Init('mylanguage', 'myaddon', 'myteam',function() -- this function can be used for calling any hooks that you might need when you've downloaded the needed language files
    hook.Run('mylanguagehook') 
end)

Then you can use this for retriving the language phrases:

print(MYLANG:GetPhrase('myphrase', 'fallback')) -- The fallback is used if the server has a outdated language version, which shouldn't happen.