code: function (data) {
      var options = data.options || {};
      var defaultValue = data.defaultValue || '';
      var key = getKey(data.key);
      var filename = getFileName(data.key);
      return translate(getData(filename), key, options, defaultValue);
    }
docs: Provide translate method for use in requests and views  How to use this method  livi18n.t({key: 'languageFilename.path.to.value', options: {}, defaultValue: 'Test'});  <Key> The first value of the 'key' separated by '.' is the name of the language file where the message, the second value is the path to the chosen message. Example: {key: 'messages.welcome'} // 'Welcome to Livi18n'  <options> The 'options' attribute receives an object with the names of the elements to be changed in the value of the message.  MessageExample: 'Hi, :name.' Example: {name: 'Princess Livia'} // 'Hi, Princess Livia.'  <defaultValue> If the chosen message is not found, the value passed in 'defaultValue' will be used as the default value of the message. Example: 'Test Value' // 'Test Value'