Skip to content

Commit

Permalink
normalize apostrophes
Browse files Browse the repository at this point in the history
  • Loading branch information
mudroljub committed Apr 11, 2024
1 parent bbe1cad commit ef11044
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/reducers/reducers.ts
Expand Up @@ -116,7 +116,9 @@ export function mainReducer(state: IMainState, { type, data }) {
}
case ActionTypes.FROM_TEXT: {
const { searchType, flavorisationType, lang, posFilter } = state;
const fromText = data;

const fromText = data.replaceAll("ʼ", "'").replaceAll("’", "'");

const [rawResults, translateTime] = Dictionary.translate({
inputText: fromText,
...lang,
Expand Down

0 comments on commit ef11044

Please sign in to comment.