Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content/rest/reference/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ This API is only available to authenticated members of the team's organization.
{% if operation.subcategory == 'members' %}{% include rest_operation %}{% endif %}
{% endfor %}

{% ifversion ghec %}
{% ifversion ghec or ghae %}
## External groups

The external groups API allows you to view the external identity provider groups that are available to your organization and manage the connection between external groups and teams in your organization.

To use this API, the authenticated user must be a team maintainer or an owner of the organization associated with the team.

{% ifversion ghec %}
{% note %}

**Notes:**
Expand All @@ -67,6 +68,7 @@ To use this API, the authenticated user must be a team maintainer or an owner of
- If your organization uses team synchronization, you can use the Team Synchronization API. For more information, see "[Team synchronization API](#team-synchronization)."

{% endnote %}
{% endif %}

{% for operation in currentRestOperations %}
{% if operation.subcategory == 'external-groups' %}{% include rest_operation %}{% endif %}
Expand Down
32 changes: 32 additions & 0 deletions script/i18n/liquid-diff.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env node

import program from 'commander'
import { compareLiquidTags } from '../../lib/liquid-tags/tokens.js'
import languages from '../../lib/languages.js'

program
.argument('<files...>', 'The file name(s) without the language dir. \nI.E. content/foo.md')
.description('Shows the differences of liquid tags between two files')
.requiredOption('-l, --language <language>', `Choose one of these languages to compare: ${Object.keys(languages).filter(l => l !== 'en')}`)
.parse(process.argv)

function reportFileDifference(diff) {
console.log(`File: ${diff.file}`)
console.log(`Translation: ${diff.translation}`)
console.log(`Differences:`)
console.log(diff.diff.output)
}

function main() {
const files = program.args
const options = program.opts()

files.forEach((file) => {
const language = languages[options.language]
if (!language) throw new Error(`${options.language} is not a recognized language`)
const diff = compareLiquidTags(file, language)
reportFileDifference(diff)
})
}

main()