Fix message encoding (#81)

jobatzil/rename
Tan Nhu 2022-11-17 03:03:50 -08:00 committed by GitHub
parent 21eb0f61b6
commit e5fe4b67fe
4 changed files with 5 additions and 3 deletions

View File

@ -93,6 +93,7 @@ export interface StringsMap {
signIn: string
signUp: string
status: string
updateFile: string
updated: string
'validation.gitBranchNameInvalid': string
'validation.repoNamePatternIsNotValid': string

View File

@ -78,7 +78,7 @@ commitDirectlyTo: 'Commit directly to the <strong style="color: var(--primary-7)
commitToNewBranch: Create a <strong>new branch</strong> for this commit and start a pull request
enterNewBranchName: New branch name
onDate: on {{date}}
deleteFile: Delete file {{path}}
deleteFile: Delete file __path__
confirm: Confirm
createABranch: Create a branch
delete: Delete
@ -96,3 +96,4 @@ browse: Browse
compare: Compare
branchDeleted: Branch {{branch}} deleted.
failedToDeleteBranch: Failed to delete Branch. Please try again.
updateFile: Update file __path__

View File

@ -62,7 +62,7 @@ export function FileContent({
icon={GitIcon.CodeDelete}
tooltipProps={{ isDark: true }}
tooltip={getString('delete')}
commitMessagePlaceHolder={getString('deleteFile', { path: resourcePath })}
commitMessagePlaceHolder={getString('deleteFile').replace('__path__', resourcePath)}
gitRef={gitRef}
resourcePath={resourcePath}
onSubmit={data => console.log({ data })}

View File

@ -142,7 +142,7 @@ function Editor({
<CommitModalButton
text={getString('commitChanges')}
variation={ButtonVariation.PRIMARY}
commitMessagePlaceHolder={'Update file...'}
commitMessagePlaceHolder={getString('updateFile').replace('__path__', fileResourcePath)}
gitRef={gitRef}
resourcePath={fileResourcePath}
onSubmit={data => console.log({ data })}