You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or 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
Introduces a new experimental.localizeUpdatedAt option. When enabled, the updatedAt field reflects the last update timestamp for the current/requested locale, rather than the document as a whole. By default, updatedAt represents the most recent save across any locale.
Why?
This is a requested feature as part of our localization enhancements. This feature will make it easier to track when each locale was last updated, helping the user maintain accurate records for every locale separately.
How?
Each saved version now includes a localeUpdatedAt property at the top level. This property stores the updatedAt timestamp for each locale, allowing the API to return the correct timestamp for the currently requested locale.
We should re-architect this PR so that it extends the _localeStatus work we've done to rename it to something like _localeMeta where we can store additional flags such as localized updatedAt:
At that point, we could have one experimental flag to enable locale meta in general, and at that point, we can have localized updatedAt as well out of the box without any additional experimental flags.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Introduces a new
experimental.localizeUpdatedAt
option. When enabled, theupdatedAt
field reflects the last update timestamp for the current/requested locale, rather than the document as a whole. By default,updatedAt
represents the most recent save across any locale.Why?
This is a requested feature as part of our localization enhancements. This feature will make it easier to track when each locale was last updated, helping the user maintain accurate records for every locale separately.
How?
Each saved version now includes a
localeUpdatedAt
property at the top level. This property stores theupdatedAt
timestamp for each locale, allowing the API to return the correct timestamp for the currently requested locale.