def tr8n_client_sdk_tag(opts = {})
      # opts[:default_source]           ||= tr8n_default_client_source
      opts[:scheduler_interval]       ||= Tr8n::Config.default_client_interval

      opts[:enable_inline_translations] = (Tr8n::Config.current_user_is_translator? and Tr8n::Config.current_translator.enable_inline_translations? and (not Tr8n::Config.current_language.default?))
      opts[:default_decorations]        = Tr8n::Config.default_decoration_tokens
      opts[:default_tokens]             = Tr8n::Config.default_data_tokens

      opts[:rules]                      = { 
        :number => Tr8n::Config.rules_engine[:numeric_rule],      
        :gender => Tr8n::Config.rules_engine[:gender_rule],
        :list   => Tr8n::Config.rules_engine[:gender_list_rule],  
        :date   => Tr8n::Config.rules_engine[:date_rule]
      }

      # build a list of actual rules of the language

      client_var_name = opts[:client_var_name] || :tr8nProxy
      opts.merge!(:enable_tml => Tr8n::Config.enable_tml?)

      "<script>Tr8n.SDK.Proxy.init(#{opts.to_json});</script>".html_safe
    end
def tr8n_client_sdk_tag(opts = {})
      # opts[:default_source]           ||= tr8n_default_client_source
      opts[:scheduler_interval]       ||= Tr8n::Config.default_client_interval

      opts[:enable_inline_translations] = (Tr8n::Config.current_user_is_translator? and Tr8n::Config.current_translator.enable_inline_translations? and (not Tr8n::Config.current_language.default?))
      opts[:default_decorations]        = Tr8n::Config.default_decoration_tokens
      opts[:default_tokens]             = Tr8n::Config.default_data_tokens

      opts[:rules]                      = { 
        :number => Tr8n::Config.rules_engine[:numeric_rule],      
        :gender => Tr8n::Config.rules_engine[:gender_rule],
        :list   => Tr8n::Config.rules_engine[:gender_list_rule],  
        :date   => Tr8n::Config.rules_engine[:date_rule]
      }

      # build a list of actual rules of the language

      client_var_name = opts[:client_var_name] || :tr8nProxy
      opts.merge!(:enable_tml => Tr8n::Config.enable_tml?)

      "<script>Tr8n.SDK.Proxy.init(#{opts.to_json});</script>".html_safe
    end
Creates an instance of tr8nProxy object