Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
localemanager/src
resources/locale
.actionScriptProperties
.gitignore
.project
LICENSE
README.md
example.gif

README.md

LocaleManager AS3 (AIR Only)

What is it?

The LocaleManager provides dyinamic localization support for ActionScript AIR only apps. It takes care of loading/parsing resource bundle files (*.txt) and returns localized resources based on the locales provided from the external JSON file.

Because it is using FileStream, it currently supports only AIR apps.

Example

Resource files

The bundle files are stored in app://locale/[xx_XX]/[xx_XX].txt (ie.: app://locale/en_US/en_US.txt). Make sure the directory "locale" is copied to your build package:

  • Put the directory locale in your src directory.
  • Or add the directory containing 'locale' to your Source Path (Flash Builder: Project > Properties > ActionScript Build Path > Source Path).

The content format for bundle files is KEY = Value followed by a line break. You can use the "=" character within the value, but not for keys or comments.

# Any line without the "equals" character is a comment. 
A leading # does not harm.
LABEL_FIRSTNAME = Firstname
LABEL_LASTNAME  = Lastname

How to use it?

Coming soon... (https://github.com/isBatak/LocaleManager/blob/master/examples/src/service/LanguageService.as)

To Do

  • Create/Make Tests
You can’t perform that action at this time.