generated from paranext/paranext-multi-extension-template
-
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.
Implemented tailwind and localization in verse ref view extension
- Loading branch information
1 parent
256080b
commit ececd49
Showing
5 changed files
with
69 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import { formatReplacementString } from 'platform-bible-utils'; | ||
|
||
/** | ||
* Get the name of the web view based on the name of the project | ||
* | ||
* @param titleStringFormat String with `{projectName}` in it to be replaced with the project name | ||
* e.g. `Verse Ref View: {projectName}` | ||
* @param projectName Should generally be the project's short name | ||
* @returns Web view title | ||
*/ | ||
export function getWebViewTitle(projectName: string | undefined) { | ||
return `Verse Ref View${projectName ? `: ${projectName}` : ''}`; | ||
export function getWebViewTitle(titleStringFormat: string, projectName: string | undefined) { | ||
return formatReplacementString(titleStringFormat, { projectName }); | ||
} |
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 @@ | ||
@import './tailwind.scss'; |
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