Files
astuto/app/views/layouts/_set_js_locale.html.erb
Riccardo Graziosi 426d65df63 Various improvements (#383)
* Improve moderation page style
* Increase ban period of anti-spam measures to 1 hour
* Fix i18n fallbacks in production
* Add EMAIL_MAIL_REPLY_TO env variable support
2024-07-16 17:30:23 +02:00

7 lines
240 B
Plaintext

<script type="text/javascript">
// Used to set I18n-js locale to Rails locale
// Variable used in javascript/translations/index.js.erb
var LOCALE = "<%= I18n.locale %>";
var IS_PRODUCTION = <%= Rails.env.production? %>;
</script>