@payloadcms/translations 3.0.0-beta.94 → 3.0.0-beta.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/importDateFNSLocale.d.ts.map +1 -1
- package/dist/importDateFNSLocale.js +2 -1
- package/dist/importDateFNSLocale.js.map +1 -1
- package/dist/utilities/init.d.ts +1 -1
- package/dist/utilities/init.d.ts.map +1 -1
- package/dist/utilities/init.js +2 -1
- package/dist/utilities/init.js.map +1 -1
- package/package.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importDateFNSLocale.d.ts","sourceRoot":"","sources":["../src/importDateFNSLocale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC,eAAO,MAAM,mBAAmB,WAAkB,MAAM,KAAG,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"importDateFNSLocale.d.ts","sourceRoot":"","sources":["../src/importDateFNSLocale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC,eAAO,MAAM,mBAAmB,WAAkB,MAAM,KAAG,OAAO,CAAC,MAAM,CA+HxE,CAAA"}
|
|
@@ -89,8 +89,9 @@ export const importDateFNSLocale = async (locale) => {
|
|
|
89
89
|
result = (await import('date-fns/locale/zh-TW')).zhTW;
|
|
90
90
|
break;
|
|
91
91
|
}
|
|
92
|
-
if (result.default)
|
|
92
|
+
if (result.default) {
|
|
93
93
|
return result.default;
|
|
94
|
+
}
|
|
94
95
|
return result;
|
|
95
96
|
};
|
|
96
97
|
//# sourceMappingURL=importDateFNSLocale.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importDateFNSLocale.js","sourceRoot":"","sources":["../src/importDateFNSLocale.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EAAE,MAAc,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MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAA;YAEhD,MAAK;QACP,KAAK,IAAI;YACP,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAA;YAEhD,MAAK;QACP,KAAK,IAAI;YACP,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAA;YAEhD,MAAK;QACP,KAAK,OAAO;YACV,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC,IAAI,CAAA;YAErD,MAAK;QACP,KAAK,OAAO;YACV,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC,IAAI,CAAA;YAErD,MAAK;IACT,CAAC;IAED,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,MAAM,CAAC,OAAO,CAAA;IACvB,CAAC;IAED,OAAO,MAAgB,CAAA;AACzB,CAAC,CAAA"}
|
package/dist/utilities/init.d.ts
CHANGED
|
@@ -423,7 +423,7 @@ export declare const getTranslationString: <TTranslations = {
|
|
|
423
423
|
viewingVersions: string;
|
|
424
424
|
viewingVersionsGlobal: string;
|
|
425
425
|
};
|
|
426
|
-
}, TTranslationKeys = "authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:lockUntil" | "authentication:logBackIn" | "authentication:logOut" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:loginAttempts" | "authentication:loginUser" | "authentication:loginWithAnotherUser" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newAccountCreated" | "authentication:newPassword" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:resetPasswordExpiration" | "authentication:resetPasswordToken" | "authentication:resetYourPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:username" | "authentication:unableToVerify" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:verifyYourEmail" | "authentication:youAreInactive" | "authentication:youAreReceivingResetPassword" | "authentication:youDidNotRequestPassword" | "error:accountAlreadyActivated" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingFile" | "error:deletingTitle" | "error:emailOrPasswordIncorrect" | "error:incorrectCollection" | "error:invalidFileType" | "error:invalidFileTypeValue" | "error:loadingDocument" | "error:logoutFailed" | "error:missingEmail" | "error:missingIDOfDocument" | "error:missingIDOfVersion" | "error:missingRequiredData" | "error:noFilesUploaded" | "error:noMatchedField" | "error:noUser" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:notFound" | "error:previewing" | "error:problemUploadingFile" | "error:tokenInvalidOrExpired" | "error:tokenNotProvided" | "error:unPublishingDocument" | "error:unableToDeleteCount" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unknown" | "error:unspecific" | "error:userEmailAlreadyRegistered" | "error:userLocked" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "error:valueMustBeUnique" | "error:verificationTokenInvalid" | "fields:block" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:chooseLabel" | "fields:collapseAll" | "fields:customURL" | "fields:editLabelData" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkType" | "fields:linkedTo" | "fields:longitude" | "fields:newLabel" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:relatedDocument" | "fields:relationTo" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:selectExistingLabel" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "general:of" | "general:language" | "general:error" | "general:newPassword" | "general:username" | "general:notFound" | "general:unauthorized" | "general:aboutToDelete" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:and" | "general:applyChanges" | "general:ascending" | "general:automatic" | "general:backToDashboard" | "general:cancel" | "general:changesNotSaved" | "general:clearAll" | "general:close" | "general:collapse" | "general:collections" | "general:columnToSort" | "general:columns" | "general:confirm" | "general:confirmDeletion" | "general:confirmDuplication" | "general:copied" | "general:copy" | "general:create" | "general:createNew" | "general:createNewLabel" | "general:created" | "general:createdAt" | "general:creating" | "general:creatingNewLabel" | "general:custom" | "general:dark" | "general:dashboard" | "general:delete" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documents" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editLabel" | "general:editing" | "general:email" | "general:emailAddress" | "general:enterAValue" | "general:errors" | "general:fallbackToDefaultLocale" | "general:false" | "general:filter" | "general:filterWhere" | "general:filters" | "general:globals" | "general:lastModified" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:locale" | "general:locales" | "general:menu" | "general:moveDown" | "general:moveUp" | "general:next" | "general:noFiltersSet" | "general:noLabel" | "general:noOptions" | "general:noResults" | "general:noValue" | "general:none" | "general:nothingFound" | "general:open" | "general:or" | "general:order" | "general:pageNotFound" | "general:password" | "general:payloadSettings" | "general:perPage" | "general:previous" | "general:remove" | "general:reset" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:searchBy" | "general:selectAll" | "general:selectAllRows" | "general:selectValue" | "general:selectedCount" | "general:showAllLabel" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:thisLanguage" | "general:titleDeleted" | "general:true" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedSuccessfully" | "general:updating" | "general:uploading" | "general:user" | "general:users" | "general:value" | "general:welcome" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:dragAndDrop" | "upload:dragAndDropHere" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:fileToUpload" | "upload:filesToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:height" | "upload:lessInfo" | "upload:moreInfo" | "upload:pasteURL" | "upload:previewSizes" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestore" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersion" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDocumentStatus" | "version:currentDraft" | "version:currentPublishedVersion" | "version:draft" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:noFurtherVersionsFound" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyPublished" | "version:problemRestoringVersion" | "version:publish" | "version:publishChanges" | "version:published" | "version:publishing" | "version:restoreAsDraft" | "version:restoreThisVersion" | "version:restoredSuccessfully" | "version:restoring" | "version:revertToPublished" | "version:reverting" | "version:saveDraft" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:showingVersionsFor" | "version:status" | "version:unpublish" | "version:unpublishing" | "version:versionCount_none" | "version:versionCreatedOn" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "error:followingFieldsInvalid" | "error:localesNotSaved" | "general:aboutToDeleteCount" | "general:editingLabel" | "version:versionCount">({ count, key, translations, }: {
|
|
426
|
+
}, TTranslationKeys = "authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:lockUntil" | "authentication:logBackIn" | "authentication:logOut" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:loginAttempts" | "authentication:loginUser" | "authentication:loginWithAnotherUser" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newAccountCreated" | "authentication:newPassword" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:resetPasswordExpiration" | "authentication:resetPasswordToken" | "authentication:resetYourPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:username" | "authentication:unableToVerify" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:verifyYourEmail" | "authentication:youAreInactive" | "authentication:youAreReceivingResetPassword" | "authentication:youDidNotRequestPassword" | "error:accountAlreadyActivated" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingFile" | "error:deletingTitle" | "error:emailOrPasswordIncorrect" | "error:incorrectCollection" | "error:invalidFileType" | "error:invalidFileTypeValue" | "error:loadingDocument" | "error:logoutFailed" | "error:missingEmail" | "error:missingIDOfDocument" | "error:missingIDOfVersion" | "error:missingRequiredData" | "error:noFilesUploaded" | "error:noMatchedField" | "error:noUser" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:notFound" | "error:previewing" | "error:problemUploadingFile" | "error:tokenInvalidOrExpired" | "error:tokenNotProvided" | "error:unPublishingDocument" | "error:unableToDeleteCount" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unknown" | "error:unspecific" | "error:userEmailAlreadyRegistered" | "error:userLocked" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "error:valueMustBeUnique" | "error:verificationTokenInvalid" | "error:followingFieldsInvalid" | "error:localesNotSaved" | "fields:block" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:chooseLabel" | "fields:collapseAll" | "fields:customURL" | "fields:editLabelData" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkType" | "fields:linkedTo" | "fields:longitude" | "fields:newLabel" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:relatedDocument" | "fields:relationTo" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:selectExistingLabel" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "general:of" | "general:error" | "general:newPassword" | "general:username" | "general:notFound" | "general:unauthorized" | "general:aboutToDelete" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:and" | "general:applyChanges" | "general:ascending" | "general:automatic" | "general:backToDashboard" | "general:cancel" | "general:changesNotSaved" | "general:clearAll" | "general:close" | "general:collapse" | "general:collections" | "general:columnToSort" | "general:columns" | "general:confirm" | "general:confirmDeletion" | "general:confirmDuplication" | "general:copied" | "general:copy" | "general:create" | "general:createNew" | "general:createNewLabel" | "general:created" | "general:createdAt" | "general:creating" | "general:creatingNewLabel" | "general:custom" | "general:dark" | "general:dashboard" | "general:delete" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documents" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editLabel" | "general:editing" | "general:email" | "general:emailAddress" | "general:enterAValue" | "general:errors" | "general:fallbackToDefaultLocale" | "general:false" | "general:filter" | "general:filterWhere" | "general:filters" | "general:globals" | "general:language" | "general:lastModified" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:locale" | "general:locales" | "general:menu" | "general:moveDown" | "general:moveUp" | "general:next" | "general:noFiltersSet" | "general:noLabel" | "general:noOptions" | "general:noResults" | "general:noValue" | "general:none" | "general:nothingFound" | "general:open" | "general:or" | "general:order" | "general:pageNotFound" | "general:password" | "general:payloadSettings" | "general:perPage" | "general:previous" | "general:remove" | "general:reset" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:searchBy" | "general:selectAll" | "general:selectAllRows" | "general:selectValue" | "general:selectedCount" | "general:showAllLabel" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:thisLanguage" | "general:titleDeleted" | "general:true" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedSuccessfully" | "general:updating" | "general:uploading" | "general:user" | "general:users" | "general:value" | "general:welcome" | "general:aboutToDeleteCount" | "general:editingLabel" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:dragAndDrop" | "upload:dragAndDropHere" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:fileToUpload" | "upload:filesToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:height" | "upload:lessInfo" | "upload:moreInfo" | "upload:pasteURL" | "upload:previewSizes" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestore" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersion" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDocumentStatus" | "version:currentDraft" | "version:currentPublishedVersion" | "version:draft" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:noFurtherVersionsFound" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyPublished" | "version:problemRestoringVersion" | "version:publish" | "version:publishChanges" | "version:published" | "version:publishing" | "version:restoreAsDraft" | "version:restoreThisVersion" | "version:restoredSuccessfully" | "version:restoring" | "version:revertToPublished" | "version:reverting" | "version:saveDraft" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:showingVersionsFor" | "version:status" | "version:unpublish" | "version:unpublishing" | "version:versionCount_none" | "version:versionCreatedOn" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "version:versionCount">({ count, key, translations, }: {
|
|
427
427
|
count?: number;
|
|
428
428
|
key: TTranslationKeys;
|
|
429
429
|
translations: Language<TTranslations>["translations"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/utilities/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EACzB,IAAI,EACJ,QAAQ,EAER,QAAQ,EACT,MAAM,aAAa,CAAA;AAMpB;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GACb,gBAAgB,+tUAKf;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,gBAAgB,CAAA;IACr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AAc,CAAC,CAAA;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC3B,GAAG,MAAM,CAmBT;AA4CD,eAAO,MAAM,QAAQ,SApBb;IACJ,OAAO,EAAE,KAAK,GAAG,QAAQ,CAAA;CAC1B,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KACxB,OAAO,CAAC,IAAI,CA2ChB,CAAA"}
|
package/dist/utilities/init.js
CHANGED
|
@@ -12,8 +12,9 @@ export const getTranslationString = ({ count, key, translations, }) => {
|
|
|
12
12
|
const keys = key.split(':');
|
|
13
13
|
let keySuffix = '';
|
|
14
14
|
const translation = keys.reduce((acc, key, index) => {
|
|
15
|
-
if (typeof acc === 'string')
|
|
15
|
+
if (typeof acc === 'string') {
|
|
16
16
|
return acc;
|
|
17
|
+
}
|
|
17
18
|
if (typeof count === 'number') {
|
|
18
19
|
if (count === 0 && `${key}_zero` in acc) {
|
|
19
20
|
keySuffix = '_zero';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/utilities/init.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAGlC,EACA,KAAK,EACL,GAAG,EACH,YAAY,GAKb,EAAU,EAAE;IACX,MAAM,IAAI,GAAI,GAA8B,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACvD,IAAI,SAAS,GAAG,EAAE,CAAA;IAElB,MAAM,WAAW,GAAW,IAAI,CAAC,MAAM,CAAC,CAAC,GAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;QAC/D,IAAI,OAAO,GAAG,KAAK,QAAQ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,MAAM,mBAAmB,CAAC,UAAU,CAAC,CAAA;IAErD,MAAM,IAAI,GAAS;QACjB,OAAO;QACP,UAAU;QACV,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,QAAQ,EAAE,QAAQ,IAAI,MAAM,CAAC,gBAAgB;QAC7C,CAAC;QACD,YAAY,EAAE,kBAAkB;KACjC,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC,EACD,CAAC,UAAU,EAAE,SAAS,CAAgD,CACvE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/translations",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.96",
|
|
4
4
|
"homepage": "https://payloadcms.com",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
"build": "pnpm build:types",
|
|
56
56
|
"build:types": "tsc --outDir dist",
|
|
57
57
|
"clean": "rimraf {dist,*.tsbuildinfo}",
|
|
58
|
+
"lint": "eslint .",
|
|
59
|
+
"lint:fix": "eslint . --fix",
|
|
58
60
|
"translateNewKeys": "node --no-deprecation --import @swc-node/register/esm-register scripts/translateNewKeys/run.ts"
|
|
59
61
|
}
|
|
60
62
|
}
|