Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(i18n): add the i18next/no-literal-string eslint rule #4998

Closed
wants to merge 163 commits into from

Commits on Oct 9, 2023

  1. Configuration menu
    Copy the full SHA
    3a5a911 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cbf5893 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    992513e View commit details
    Browse the repository at this point in the history
  4. refactor(i18n): drop ability to provide i18n init options

    [sc-35331]
    rexxars authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    f96d1e0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cd78d61 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d732047 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c05629f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c117b87 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fb83bbf View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e354ee5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a341382 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c4f2582 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    72c9860 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c9cb31a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f578469 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    4047670 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7f618aa View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    64602a8 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    e40581e View commit details
    Browse the repository at this point in the history
  20. refactor(types): use interface instead of type for ValidationContext

    We generally prefer interfaces, but this in particular allows us to extend the
    type from the `sanity` module using declaration merging. While not the optimal
    choice (the whole type should really just be in the `sanity` module), it is at
    least addressing the problem until we can do a breaking change in the types
    module.
    rexxars authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    97c52f1 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    c9af0bf View commit details
    Browse the repository at this point in the history
  22. fix(desk): show all validation errors for a given path

    Because there can be several validation errors/warnings/info messages for a
    single field, simply using the field path as key is not enough, since React only
    renders a single element per parent with a given key.
    rexxars authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    021ec17 View commit details
    Browse the repository at this point in the history
  23. feat(i18n): add loadNamespaces method to i18n source

    This is required because non-React codepaths will simply fail/throw when
    attempting to use a namespace that is not defined. An example is the upcoming
    validation system, where the validation system is decoupled from the React
    lifecycle, and so cannot rely on Suspense in order to load missing namespaces.
    rexxars authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    c6971ad View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    d95b646 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    6dc815b View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    20bc64a View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    90d4306 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    1d73b94 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    eaaab22 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    06c52b3 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    702af41 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    570f461 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    5e57311 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    03984ac View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    47505b2 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    e455e5c View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    9d16586 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    3d88afe View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    1f412f4 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    c91c888 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    2185f02 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    2120401 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    afe77a0 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    9aa8234 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    1616b0a View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    71e27e7 View commit details
    Browse the repository at this point in the history
  47. refactor(desk): remove unused imports + rely on i18n translate for ti…

    …me formatting - timelineMenu
    RitaDias authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    b89f2d9 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    fcc0fc5 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    c4bdcff View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    0119f72 View commit details
    Browse the repository at this point in the history
  51. refactor(desk): update error subgroup

    RitaDias authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    6b3d155 View commit details
    Browse the repository at this point in the history
  52. chore(desk): remove unused usememo

    RitaDias authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    8c121f2 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    550e177 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    982c699 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    47b93b0 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    a4cddf7 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    634a09c View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    bc40bb9 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    ed5a6e9 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    af5da0a View commit details
    Browse the repository at this point in the history
  61. refactor: remove unused import

    rexxars authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    84fe085 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    e682670 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    f22639f View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    26c04ac View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    9b58c70 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    6149f87 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    bbe9142 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    eee1f2d View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    2e15819 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    667596a View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    741813d View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    78d1833 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    1093869 View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    dffe098 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    955cdb8 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    3ffd850 View commit details
    Browse the repository at this point in the history
  77. feat(core): add i18n primitives to FilterPopoverContentHeader + Docum…

    …entTypesPopoverContent
    RitaDias authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    ea3b0f6 View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    ca86644 View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    e31c858 View commit details
    Browse the repository at this point in the history
  80. feat(core): add i18n primitives to AddFilterPopoverContent + add plur…

    …al for "filters" + generic no search found
    RitaDias authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    a4fee28 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    6b753ce View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    551fb43 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    c08f5ad View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    bfef9f5 View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    04d0431 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    b41fe80 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    c56beac View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    67d1827 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    c12244e View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    d8e89c3 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    a505d3d View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    e36b46b View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    21aaf9e View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    3c9df09 View commit details
    Browse the repository at this point in the history
  95. Configuration menu
    Copy the full SHA
    c78b115 View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    494a2fc View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    3952fd1 View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    1d42169 View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    310a9cf View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    e402e5e View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    6f25217 View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    3e1459a View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    cf732ab View commit details
    Browse the repository at this point in the history
  104. Configuration menu
    Copy the full SHA
    dd1d590 View commit details
    Browse the repository at this point in the history
  105. Configuration menu
    Copy the full SHA
    05ac3b5 View commit details
    Browse the repository at this point in the history
  106. Configuration menu
    Copy the full SHA
    76d8ab6 View commit details
    Browse the repository at this point in the history
  107. Configuration menu
    Copy the full SHA
    ea119fc View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    bc9e482 View commit details
    Browse the repository at this point in the history
  109. Configuration menu
    Copy the full SHA
    3c0201b View commit details
    Browse the repository at this point in the history
  110. Configuration menu
    Copy the full SHA
    8be5e9e View commit details
    Browse the repository at this point in the history
  111. Configuration menu
    Copy the full SHA
    082c5b7 View commit details
    Browse the repository at this point in the history
  112. Configuration menu
    Copy the full SHA
    c1acdcb View commit details
    Browse the repository at this point in the history
  113. Configuration menu
    Copy the full SHA
    1b09b74 View commit details
    Browse the repository at this point in the history
  114. fix(core): workplace -> workspace

    RitaDias authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    b2d67c4 View commit details
    Browse the repository at this point in the history
  115. Configuration menu
    Copy the full SHA
    502b56a View commit details
    Browse the repository at this point in the history
  116. Configuration menu
    Copy the full SHA
    f492704 View commit details
    Browse the repository at this point in the history
  117. Configuration menu
    Copy the full SHA
    e2c3df2 View commit details
    Browse the repository at this point in the history
  118. chore(core): update packages/sanity/src/core/i18n/bundles/studio.ts typo

    Co-authored-by: Robin Pyon <[email protected]>
    2 people authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    32f2779 View commit details
    Browse the repository at this point in the history
  119. Configuration menu
    Copy the full SHA
    2706896 View commit details
    Browse the repository at this point in the history
  120. Configuration menu
    Copy the full SHA
    66573ab View commit details
    Browse the repository at this point in the history
  121. Configuration menu
    Copy the full SHA
    914d4c1 View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    e65d9d6 View commit details
    Browse the repository at this point in the history
  123. fix(core): inconsistent navbar prefix

    rexxars authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    8fbcf8c View commit details
    Browse the repository at this point in the history
  124. Configuration menu
    Copy the full SHA
    3a6ae15 View commit details
    Browse the repository at this point in the history
  125. Configuration menu
    Copy the full SHA
    f808fba View commit details
    Browse the repository at this point in the history
  126. Configuration menu
    Copy the full SHA
    6cbefb8 View commit details
    Browse the repository at this point in the history
  127. Configuration menu
    Copy the full SHA
    360df63 View commit details
    Browse the repository at this point in the history
  128. Configuration menu
    Copy the full SHA
    0188a66 View commit details
    Browse the repository at this point in the history
  129. Configuration menu
    Copy the full SHA
    052f666 View commit details
    Browse the repository at this point in the history
  130. Configuration menu
    Copy the full SHA
    5f0c4c6 View commit details
    Browse the repository at this point in the history
  131. Configuration menu
    Copy the full SHA
    6b26b22 View commit details
    Browse the repository at this point in the history
  132. Configuration menu
    Copy the full SHA
    3fa89c2 View commit details
    Browse the repository at this point in the history
  133. Configuration menu
    Copy the full SHA
    a0b3c3f View commit details
    Browse the repository at this point in the history
  134. Configuration menu
    Copy the full SHA
    0f4a09a View commit details
    Browse the repository at this point in the history
  135. Configuration menu
    Copy the full SHA
    9018949 View commit details
    Browse the repository at this point in the history
  136. refactor(i18n): allow string arrays as <Translate> values

    Rationale: translation resources can use the list formatting functions
    rexxars authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    4125419 View commit details
    Browse the repository at this point in the history
  137. refactor(i18n): make components prop required for <Translate>

    Rationale: We prefer that people use the `useTranslation` hook instead,
    as it has a lower overhead. The only two use cases we're tailoring for
    is when you need to use React components as part of the translation resource,
    or you are using a non-functional component and thus cannot use hooks.
    rexxars authored and bjoerge committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    3942229 View commit details
    Browse the repository at this point in the history
  138. Configuration menu
    Copy the full SHA
    ab1477a View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. feat(i18n): add useIntlListFormat hook

    Makes it easier to get hold of a list formatter outside of locale resources,
    which you sometimes need, while ensuring it is using the correct (current)
    locale, and does not recreate the formatter on every render.
    rexxars committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    c98dd0f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c22bff1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    936455a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    93717bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f7d0872 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eb88a09 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    681387d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b7e9bc5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    796533a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1bfe3ef View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0a4bf47 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    49e8d84 View commit details
    Browse the repository at this point in the history
  13. feat(core): add i18n primitives to ArrayOfObjectsFunctions + ArrayOfP…

    …rimitivesFunctions
    RitaDias authored and rexxars committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    7ee3f25 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7a2afc7 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9a1bc01 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    47f6095 View commit details
    Browse the repository at this point in the history
  17. refactor: drop unused imports

    rexxars committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    c6906f6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    87ec072 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    934cd0c View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    d8635aa View commit details
    Browse the repository at this point in the history
  21. chore(test-studio): use norwegian schema for allTypes type

    Makes it easier to see which areas are not yet localized
    rexxars committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    786b7cc View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2023

  1. Configuration menu
    Copy the full SHA
    cff28db View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f6f7a5 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

  1. Configuration menu
    Copy the full SHA
    49cbdc6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5422e0e View commit details
    Browse the repository at this point in the history