-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace tp.execute() → tp() & tpForAsideMenu.execute() → tUI() (#121)
- Loading branch information
1 parent
e147ec1
commit 4da39a2
Showing
9 changed files
with
52 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Typograf from 'typograf' | ||
|
||
const TYPOGRAF_DEFAULT_SETTINGS = { | ||
locale: ['ru', 'en-US'], | ||
disableRule: [ | ||
'common/space/trimRight', | ||
'common/space/trimLeft', | ||
'common/space/delBeforePunctuation', | ||
'common/space/afterPunctuation', | ||
'common/nbsp/replaceNbsp', | ||
], | ||
} | ||
|
||
const typograf = new Typograf(TYPOGRAF_DEFAULT_SETTINGS) | ||
const typografUI = new Typograf(TYPOGRAF_DEFAULT_SETTINGS) | ||
|
||
typografUI.disableRule([ | ||
'ru/punctuation/ano', | ||
'ru/punctuation/exclamation', | ||
'ru/punctuation/exclamationQuestion', | ||
'ru/punctuation/hellipQuestion', | ||
]) | ||
|
||
export default function t(string) { | ||
return typograf.execute(string) | ||
} | ||
|
||
export function tUI(string) { | ||
return typografUI.execute(string) | ||
} |
This file was deleted.
Oops, something went wrong.