Skip to content

Commit

Permalink
Merge branch 'main' of github.com:globuslimited/globus-translation
Browse files Browse the repository at this point in the history
  • Loading branch information
faradaytrs committed Oct 28, 2021
2 parents 488896a + 99c5641 commit 815e66c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@globuslimited/translation",
"version": "1.1.1",
"version": "1.1.2",
"description": "Hooks for handling translation",
"repository": "git@github.com:globuslimited/globus-translation.git",
"author": "Andrei izotov <faradaytrs@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/context.ts
@@ -1,5 +1,5 @@
import { createContext } from "react";
import {TranslationProperties} from "./useTranslation";
import {TranslationProperties} from "./useTranslation.js";

export enum Language {
English = "en",
Expand Down
12 changes: 6 additions & 6 deletions src/index.ts
@@ -1,7 +1,7 @@
import { TranslationContext } from "./context";
export { TranslationContext } from "./context";
export { useTranslation } from "./useTranslation";
import { TranslationContext } from "./context.js";
export {TranslationContext} from "./context.js";
export {useTranslation} from "./useTranslation.js";
export const TranslationProvider = TranslationContext.Provider;
export { TranslationProperties, UseTranslationResponse } from "./useTranslation";
export { TranslationMap, Translation, TranslationSettings, TemplateFunction, Language } from "./context";
export { translation } from "./translation";
export {TranslationProperties, UseTranslationResponse} from "./useTranslation.js";
export {TranslationMap, Translation, TranslationSettings, TemplateFunction, Language} from "./context.js";
export {translation} from "./translation.js";
2 changes: 1 addition & 1 deletion src/translation.ts
@@ -1,4 +1,4 @@
import {TranslationMap} from "./context";
import {TranslationMap} from "./context.js";
import {assoc, mergeDeepWith} from "ramda";

export type Translation = {
Expand Down
4 changes: 2 additions & 2 deletions src/useTranslation.ts
@@ -1,7 +1,7 @@
import {useContext} from "react";
import {path} from "ramda";
import {Language, TemplateFunction, TranslationContext, TranslationMap} from "./context";
import {Translation, extend} from "./translation";
import {Language, TemplateFunction, TranslationContext, TranslationMap} from "./context.js";
import {Translation, extend} from "./translation.js";

const replaceAll = (string: string, token: string, newToken: string) => {
if (token != newToken)
Expand Down

0 comments on commit 815e66c

Please sign in to comment.