framework/js/lib
Toby Zerner 8b162344cd Lay the groundwork for translation & refactor asset compilation
Ditched the idea of having language packs as extensions. Reasoning:

1. Because we use machine keys for translations (rather than English
keys), extensions need to be able to define default translations. If
English translations are to be included in extensions and not in a
language pack extension, then it doesn’t make sense to have other
languages as language pack extensions. Inconsistency → complexity.

2. Translations should maintain version parity with their respective
extensions. There’s no way to do this if extension translations are
external to the extension.

Instead, localisation will be a core effort, as well as a per-extension
effort. Translators will be encouraged to send PRs to core + extensions.

In core, each locale has a directory containing three files:
- translations.yml
- config.js: contains pluralisation logic for the JS app, as well as
moment.js localisation if necessary
- config.php: contains pluralisation logic for the PHP app

Extensions can use the Flarum\Extend\Locale extender to add/override
translations/config to a locale.

Asset compilation has been completely refactored with a better
architecture. Translations + config.js are compiled and cached for the
currently active locale.
2015-06-10 14:23:56 +09:30
..
components Add text-editor API to get selection range 2015-06-01 08:49:46 +09:30
helpers Implement search on front end 2015-06-03 18:10:56 +09:30
initializers Fix/simplify timestamp live updating. closes flarum/core#101 2015-06-01 11:10:15 +09:30
models Rejig formatting API. closes flarum/core#85 2015-06-04 10:48:07 +09:30
utils Lay the groundwork for translation & refactor asset compilation 2015-06-10 14:23:56 +09:30
component.js Clicking on an index nav item should always refresh the discussion list 2015-05-18 15:27:39 +09:30
extension-utils.js Change extend function so that a value doesn't have to be returned 2015-05-05 17:04:42 +09:30
model.js Prevent error when trying to get relationship and no links have been loaded 2015-05-30 13:58:21 +09:30
session.js Fix logout redirection 2015-05-04 10:30:38 +09:30
store.js Better handling of API server errors 2015-05-26 11:43:20 +09:30