mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
* Fix locale fallbacks * Make header links relative * Improve like button style * Other small improvements...
11 lines
354 B
Plaintext
11 lines
354 B
Plaintext
import I18n from "i18n-js"
|
|
|
|
I18n.translations = <%= I18n::JS.filtered_translations.to_json %>
|
|
I18n.locale = LOCALE
|
|
I18n.defaultLocale = "en"
|
|
I18n.fallbacks = <%= Rails.env.production? ? true : false %>
|
|
|
|
I18n.pluralization["zh-CN"] = function(count) { return ["other"] }
|
|
I18n.pluralization["vi"] = function(count) { return ["other"] }
|
|
|
|
export default I18n |