Skip to content

Commit

Permalink
fix: correctly mark external resources
Browse files Browse the repository at this point in the history
  • Loading branch information
cschmatzler committed Sep 4, 2023
1 parent 80ced66 commit 74df0c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/idiom.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ defmodule Idiom do

require Logger

@external_resource "README.md"

@doc false
defdelegate child_spec(options), to: Idiom.Supervisor

Expand Down
5 changes: 3 additions & 2 deletions lib/idiom/plural.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ defmodule Idiom.Plural do

require Logger

@rules "priv/idiom"
|> Path.join("/plurals.json")
@external_resource "priv/idiom/plurals.json"

@rules "priv/idiom/plurals.json"
|> File.read!()
|> Jason.decode!()
|> get_in(["supplemental", "plurals-type-cardinal"])
Expand Down

0 comments on commit 74df0c9

Please sign in to comment.