You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							997 B
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							997 B
						
					
					
				"use strict";
 | 
						|
 | 
						|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
 | 
						|
 | 
						|
Object.defineProperty(exports, "__esModule", {
 | 
						|
  value: true
 | 
						|
});
 | 
						|
exports.Translation = Translation;
 | 
						|
 | 
						|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
 | 
						|
 | 
						|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
 | 
						|
 | 
						|
var _useTranslation3 = require("./useTranslation");
 | 
						|
 | 
						|
var _excluded = ["ns", "children"];
 | 
						|
 | 
						|
function Translation(props) {
 | 
						|
  var ns = props.ns,
 | 
						|
      children = props.children,
 | 
						|
      options = (0, _objectWithoutProperties2["default"])(props, _excluded);
 | 
						|
 | 
						|
  var _useTranslation = (0, _useTranslation3.useTranslation)(ns, options),
 | 
						|
      _useTranslation2 = (0, _slicedToArray2["default"])(_useTranslation, 3),
 | 
						|
      t = _useTranslation2[0],
 | 
						|
      i18n = _useTranslation2[1],
 | 
						|
      ready = _useTranslation2[2];
 | 
						|
 | 
						|
  return children(t, {
 | 
						|
    i18n: i18n,
 | 
						|
    lng: i18n.language
 | 
						|
  }, ready);
 | 
						|
} |