Skip to content

Commit

Permalink
Bumped API version to 1.0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Whitlock committed Oct 30, 2024
1 parent d5d3e13 commit c6b8a0f
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 105 deletions.
4 changes: 3 additions & 1 deletion src/Console/Command/Generated/ExportAllCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ protected function configure()
->addOption('charset', '', InputOption::VALUE_REQUIRED, 'Specify preferred character encoding. Alternative to `Accept-Charset` header but accepts a single value which must be valid.', null)
->addOption('breaks', '', InputOption::VALUE_REQUIRED, 'Force platform-specific line-endings. Default is Unix (LF) breaks.', null)
->addOption('no-comments', '', InputOption::VALUE_REQUIRED, 'Disable rendering of redundant inline comments including the Loco banner.', null)
->addOption('no-folding', '', InputOption::VALUE_REQUIRED, 'Protect <a href="https://localise.biz/help/developers/asset-ids#folding">dot-separated keys</a> so that `foo.bar` is not folded into object properties.', null)
->addOption('no-expand', '', InputOption::VALUE_REQUIRED, 'Protect <a href="https://localise.biz/help/developers/asset-ids#folding">dot notation in keys</a> so that `foo.bar` is not expanded to an object.', null)
->addOption('collisions', '', InputOption::VALUE_REQUIRED, 'Override the default strategy for handling conflicting keys. <a href="https://localise.biz/help/developers/key-collisions">See key collisions</a>.', null)
->addOption('no-folding', '', InputOption::VALUE_REQUIRED, 'DEPRECATED: alias of `no-expand` for backward compatibility.', null)
;
parent::configure();
}
Expand Down
6 changes: 4 additions & 2 deletions src/Console/Command/Generated/ExportArchiveCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function configure()
->setName('loco:export:archive')
->setMethod('exportArchive')
->setDescription('Export all locales to a zip archive')
->addArgument('ext', InputArgument::OPTIONAL, 'Target file type specified as a file extension', 'json')
->addArgument('ext', InputArgument::OPTIONAL, 'Target file type specified as a file extension. <a href="https://localise.biz/api#formats">See available options</a>.', 'json')
->addOption('format', '', InputOption::VALUE_REQUIRED, 'More specific format of file type. e.g. <code>symfony</code> applies to <code>php</code>, <code>xlf</code> &amp; <code>yml</code>', null)
->addOption('filter', '', InputOption::VALUE_REQUIRED, 'Filter assets by comma-separated tag names. Match any tag with `*` and negate tags by prefixing with `!`', null)
->addOption('index', '', InputOption::VALUE_REQUIRED, 'Override default lookup key for the file format: "id", "text" or a custom alias', null)
Expand All @@ -37,7 +37,9 @@ protected function configure()
->addOption('charset', '', InputOption::VALUE_REQUIRED, 'Specify preferred character encoding. Alternative to `Accept-Charset` header but accepts a single value which must be valid.', null)
->addOption('breaks', '', InputOption::VALUE_REQUIRED, 'Force platform-specific line-endings. Default is Unix (LF) breaks.', null)
->addOption('no-comments', '', InputOption::VALUE_REQUIRED, 'Disable rendering of redundant inline comments including the Loco banner.', null)
->addOption('no-folding', '', InputOption::VALUE_REQUIRED, 'Protect <a href="https://localise.biz/help/developers/asset-ids#folding">dot-separated keys</a> so that `foo.bar` is not folded into object properties.', null)
->addOption('no-expand', '', InputOption::VALUE_REQUIRED, 'Protect <a href="https://localise.biz/help/developers/asset-ids#folding">dot notation in keys</a> so that `foo.bar` is not expanded to an object.', null)
->addOption('collisions', '', InputOption::VALUE_REQUIRED, 'Override the default strategy for handling conflicting keys. <a href="https://localise.biz/help/developers/key-collisions">See key collisions</a>.', null)
->addOption('no-folding', '', InputOption::VALUE_REQUIRED, 'DEPRECATED: alias of `no-expand` for backward compatibility.', null)
;
parent::configure();
}
Expand Down
6 changes: 4 additions & 2 deletions src/Console/Command/Generated/ExportLocaleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function configure()
->setMethod('exportLocale')
->setDescription('Export a single locale to a language pack')
->addArgument('locale', InputArgument::REQUIRED, 'Locale to export, specified as short code or language tag. e.g. `en` or `en_GB`', null)
->addArgument('ext', InputArgument::OPTIONAL, 'Target file type specified as a file extension', 'json')
->addArgument('ext', InputArgument::OPTIONAL, 'Target file type specified as a file extension. <a href="https://localise.biz/api#formats">See available options</a>.', 'json')
->addOption('format', '', InputOption::VALUE_REQUIRED, 'More specific format of file type. e.g. <code>symfony</code> applies to <code>php</code>, <code>xlf</code> &amp; <code>yml</code>', null)
->addOption('filter', '', InputOption::VALUE_REQUIRED, 'Filter assets by comma-separated tag names. Match any tag with `*` and negate tags by prefixing with `!`', null)
->addOption('index', '', InputOption::VALUE_REQUIRED, 'Override default lookup key for the file format: "id", "text" or a custom alias', null)
Expand All @@ -37,7 +37,9 @@ protected function configure()
->addOption('charset', '', InputOption::VALUE_REQUIRED, 'Specify preferred character encoding. Alternative to `Accept-Charset` header but accepts a single value which must be valid.', null)
->addOption('breaks', '', InputOption::VALUE_REQUIRED, 'Force platform-specific line-endings. Default is Unix (LF) breaks.', null)
->addOption('no-comments', '', InputOption::VALUE_REQUIRED, 'Disable rendering of redundant inline comments including the Loco banner.', null)
->addOption('no-folding', '', InputOption::VALUE_REQUIRED, 'Protect <a href="https://localise.biz/help/developers/asset-ids#folding">dot-separated keys</a> so that `foo.bar` is not folded into object properties.', null)
->addOption('no-expand', '', InputOption::VALUE_REQUIRED, 'Protect <a href="https://localise.biz/help/developers/asset-ids#folding">dot notation in keys</a> so that `foo.bar` is not expanded to an object.', null)
->addOption('collisions', '', InputOption::VALUE_REQUIRED, 'Override the default strategy for handling conflicting keys. <a href="https://localise.biz/help/developers/key-collisions">See key collisions</a>.', null)
->addOption('no-folding', '', InputOption::VALUE_REQUIRED, 'DEPRECATED: alias of `no-expand` for backward compatibility.', null)
;
parent::configure();
}
Expand Down
7 changes: 4 additions & 3 deletions src/Console/Command/Generated/ExportTemplateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ protected function configure()
->setName('loco:export:template')
->setMethod('exportTemplate')
->setDescription('Export a template containing only source keys')
->addArgument('ext', InputArgument::OPTIONAL, 'Target file type specified as a file extension', 'json')
->addArgument('ext', InputArgument::OPTIONAL, 'Target file type specified as a file extension. <a href="https://localise.biz/api#formats">See available options</a>.', 'json')
->addOption('format', '', InputOption::VALUE_REQUIRED, 'More specific format of file type. e.g. <code>symfony</code> applies to <code>php</code>, <code>xlf</code> &amp; <code>yml</code>', null)
->addOption('filter', '', InputOption::VALUE_REQUIRED, 'Filter assets by comma-separated tag names. Match any tag with `*` and negate tags by prefixing with `!`', null)
->addOption('index', '', InputOption::VALUE_REQUIRED, 'Override default lookup key for the file format: "id", "text" or a custom alias', null)
->addOption('source', '', InputOption::VALUE_REQUIRED, 'Specify alternative source locale instead of project default', null)
->addOption('namespace', '', InputOption::VALUE_REQUIRED, 'Override the project name for some language packs that use it as a key prefix', null)
->addOption('fallback', '', InputOption::VALUE_REQUIRED, 'Fallback locale for untranslated assets, specified as short code. e.g. `en` or `en_GB`', null)
->addOption('order', '', InputOption::VALUE_REQUIRED, 'Export translations according to asset order', null)
->addOption('status', '', InputOption::VALUE_REQUIRED, 'Export translations with a specific status or flag. Negate values by prefixing with `!`. e.g. "translated", or "!fuzzy".', null)
->addOption('printf', '', InputOption::VALUE_REQUIRED, 'Force alternative "printf" style. <a href="https://localise.biz/help/developers/printf">See string formatting</a>', null)
->addOption('charset', '', InputOption::VALUE_REQUIRED, 'Specify preferred character encoding. Alternative to `Accept-Charset` header but accepts a single value which must be valid.', null)
->addOption('breaks', '', InputOption::VALUE_REQUIRED, 'Force platform-specific line-endings. Default is Unix (LF) breaks.', null)
->addOption('no-comments', '', InputOption::VALUE_REQUIRED, 'Disable rendering of redundant inline comments including the Loco banner.', null)
->addOption('no-folding', '', InputOption::VALUE_REQUIRED, 'Protect <a href="https://localise.biz/help/developers/asset-ids#folding">dot-separated keys</a> so that `foo.bar` is not folded into object properties.', null)
->addOption('no-expand', '', InputOption::VALUE_REQUIRED, 'Protect <a href="https://localise.biz/help/developers/asset-ids#folding">dot notation in keys</a> so that `foo.bar` is not expanded to an object.', null)
->addOption('collisions', '', InputOption::VALUE_REQUIRED, 'Override the default strategy for handling conflicting keys. <a href="https://localise.biz/help/developers/key-collisions">See key collisions</a>.', null)
->addOption('no-folding', '', InputOption::VALUE_REQUIRED, 'DEPRECATED: alias of `no-expand` for backward compatibility.', null)
;
parent::configure();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Http/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
*/
class ApiClient extends GuzzleClient
{
public const SDK_VERSION = '2.0.13';
public const API_VERSION = '1.0.28';
public const SDK_VERSION = '2.0.14';
public const API_VERSION = '1.0.29';

/**
* Factory method to create a new Loco API client.
Expand Down
Loading

0 comments on commit c6b8a0f

Please sign in to comment.