I18n challenge when setting a variable in the config file

Hello there,

I have just found out that while using the i18n, with a set :dir, "/" + I18n.locale.to_s + "/" in the configure :development, that value is set only by the time the application starts.

However, later changing the locale version in the address bar doesn’t update the value, hence I have my second language of the site showing wrong paths (and a number of different things).

Perhaps it is me approaching this in the wrong manner, but is there any method or configuration block I can use to update my :dir without repeating the block (or a call to a function everywhere)?

Thanks