framework/js/lib/utils
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
..
abbreviate-number.js Add helper to format number with commas 2015-05-30 08:40:29 +09:30
anchor-scroll.js New and improved post stream. 2015-05-29 18:17:50 +09:30
app.js Lay the groundwork for translation & refactor asset compilation 2015-06-10 14:23:56 +09:30
class-list.js Replace Ember app with Mithril app 2015-04-25 22:28:39 +09:30
computed.js Replace Ember app with Mithril app 2015-04-25 22:28:39 +09:30
evented.js Show composer after discussion is reloaded following login 2015-05-18 15:38:19 +09:30
format-number.js Add helper to format number with commas 2015-05-30 08:40:29 +09:30
human-time.js Replace Ember app with Mithril app 2015-04-25 22:28:39 +09:30
item-list.js Ability to merge list items 2015-05-02 08:28:02 +09:30
map-routes.js Extensibility: discussion list params 2015-05-02 08:43:38 +09:30
mixin.js Replace Ember app with Mithril app 2015-04-25 22:28:39 +09:30
scroll-listener.js Replace Ember app with Mithril app 2015-04-25 22:28:39 +09:30
server-error.js Better handling of API server errors 2015-05-26 11:43:20 +09:30
string-to-color.js Skin colour tweaks 2015-05-02 08:29:43 +09:30
string.js Dasherize post/notification type class names 2015-05-06 08:32:33 +09:30
subtree-retainer.js Properly initialise subtree retainers 2015-05-18 10:35:12 +09:30
translator.js Lay the groundwork for translation & refactor asset compilation 2015-06-10 14:23:56 +09:30