Files
astuto/app/javascript/translations/index.js.erb
Riccardo Graziosi 747483cfa3 Various improvements (#332)
* Fix locale fallbacks
* Make header links relative
* Improve like button style
* Other small improvements...
2024-05-09 19:23:45 +02:00

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