From 0dc40cd9ac8971fae0329540fd67239b602f87fa Mon Sep 17 00:00:00 2001 From: Yang Xu Date: Tue, 15 Feb 2022 16:55:13 +0800 Subject: [PATCH] update --- README.md | 9 ++++----- READMECN.md | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b067899..4eb27dc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Persistent History Tracking Kit -Helps you easily handle Core Data's Persistent History Tracking. +Helps you easily handle Core Data's Persistent History Tracking [中文版说明](https://github.com/fatbobman/PersistentHistoryTrackingKit/blob/main/READMECN.md) @@ -71,13 +71,13 @@ The author name of all members managed by the Persistent History Tracking Kit. Persistent History Tracking Kit should only be used to manage transactions generated by developer-created applications, application extensions, and backend contexts; other system-generated transactions (e.g. Core Data with CloudKit) are handled by the system itself. -例如,您的应用程序 author 名称为:“appAuthor”,应用程序扩展 author 名称为:“extensionAuthor”,则: +For example, if your application author name is: "appAuthor" and your application extension author name is: "extensionAuthor", then. ```swift allAuthors: ["appAuthor", "extensionAuthor"], ``` -For example, if your application author name is: "appAuthor" and your application extension author name is: "extensionAuthor", then. +For transactions generated in the backend context, the backend context should also have a separate author name if it is not set to auto-merge. ```swift allAuthors: ["appAuthor", "extensionAuthor", "appBatchAuthor"], @@ -147,7 +147,7 @@ cleanStrategy: .byNotification(times: 1), cleanStrategy: byDuration(seconds: 60), ``` -当清理策略设置为 none 时,可以通过生成单独的清理实例,在合适的时机进行清理。 +When the cleanup policy is set to none, cleanup can be performed at the right time by generating separate cleanup instances. ```swift let kit = PersistentHistoryTrackingKit( @@ -229,4 +229,3 @@ dependencies: [ ## License This library is released under the MIT license. See [LICENSE](https://github.com/fatbobman/persistentHistoryTrackingKit/blob/main/LICENSE) for details. - diff --git a/READMECN.md b/READMECN.md index 00dd3be..b29d594 100644 --- a/READMECN.md +++ b/READMECN.md @@ -1,6 +1,6 @@ # Persistent History Tracking Kit -帮助您轻松处理 Core Data 的持久性历史跟踪 +帮助您轻松处理 Core Data 的持久性历史跟踪。 ## What's This?